File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes jQuery not Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "jQuery not "seen" [ghost buster]" Watch "jQuery not "seen" [ghost buster]" New topic
Author

jQuery not "seen" [ghost buster]

Jack Rackham
Greenhorn

Joined: Aug 03, 2011
Posts: 23
Hi all !

I've a matter, Grails doesn't seem to find jQuery, because when I try to execute an amazing $(document).ready(function(){ alert("love you so much")}; I have the following error :

$ is not defined



However I've followed the instructions of the doco :
http://www.grails.org/plugin/jquery

I've been looking for this for a while, and now I don't know what to do.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Have you viewed the source of the page to see if there is a script element pulling in jQuery?


GenRocket - Experts at Building Test Data
Jack Rackham
Greenhorn

Joined: Aug 03, 2011
Posts: 23
Hi ! Here is the source of the HTML :

Jack Rackham
Greenhorn

Joined: Aug 03, 2011
Posts: 23
OK I found the solution. Just had to replace in the /layouts/main.gsp the <g:javascript library="prototype"/> by <g:javascript library="jquery" plugin="jquery"/>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery not "seen" [ghost buster]