Why Doesn't Jquery Getjson Function Execute When A Page Is Redirected Instead Of Called Directly?
I have a JSP page which calls several jQuery.getJSON() functions subsequently. I render some charts and all works very well. The user clicks on a menu item (URL) to invoke this JSP
Solution 1:
Ok - yes it's because of the context path being hardcoded. To fix this I replaced any reference like ../js/jquery.js
with src="<%=request.getContextPath()%>/js/jquery.js">
Now it works..hope I didn't waste anyone's time.
Post a Comment for "Why Doesn't Jquery Getjson Function Execute When A Page Is Redirected Instead Of Called Directly?"