So having played around for the afternoon I've finally figured out the problem. It appears that if I place the above code into a its own JS file it doesn't work but if I include the script in the html it works. Any ideas? I'd rather have it in its own js
file
ruddj16
Member
59 Points
92 Posts
Re: calling controller method using ajax
Jun 25, 2012 05:20 PM|LINK
So having played around for the afternoon I've finally figured out the problem. It appears that if I place the above code into a its own JS file it doesn't work but if I include the script in the html it works. Any ideas? I'd rather have it in its own js file