ajax help
ajax help
if I put into my address bar
www.blah.com/application/welcome.htm?method=castVote
my spring MVC will grab the method parameter and use it to find the appropriate method to call in my welcome controller.
However, if I put any kind of jquery into an onclick event it doesn't work. I've tried
-
$.get("welcome.htm?method=castVote");
$.get("welcome.htm", {method: "castVote"});
$.ajax({type: "GET", url: "welcome.htm", data: "method=castVote"});
and nothing seems to work. As of now it doesn't return anything or need to do anything but get to that url. It doesn't seem to be making its way to my controllers at all.
*btw, application is the root of my application. just
www.blah.com
takes me to a server notice thing and I add the /applciation/ to get to the stuff I use.