I’m using jQuery in my project by the jQuery and jQuery-ui plugins. I have a simple form which I want to submit in Ajax call to the controller. The thing is, when I put the <g:submitToRemote /> tag and then click it, firebug shows error that Ajax is not defined. What can I do to make it work?
I’m using jQuery in my project by the jQuery and jQuery-ui plugins. I have
Share
Add this line to the layout file that your form GSP is using
and the following to your
grails-app/conf/Config.groovyGrails 2.0.0
In Grails 2.0.0 the correct way to include JQuery is to use the new resources plugin by adding the following to the layout GSP