Missing or wrong contextPath for the jquery.js script? "undefined" means that it wasn't loaded, and you should see a 404 for that file on Firebug's Net tab.
Jörn On Tue, Apr 21, 2009 at 4:29 PM, mwetmore <mwetm...@gmail.com> wrote: > > Hello, we are currently using the JQuery accordion to build some > dashboards. We mocked up the pages with just plain html and we are > starting to convert them to jsp's using the spring framework and > tiles. We are deploying it to jboss, and when we go to the page we > receive the following javascript issue. > > Here is the script code: > <script type="text/javascript"> > $(function(){ > > // Accordion > $("#accordion").accordion({ header: "h3", > active: false }); > > // Tabs > $('#tabs').tabs(); > > > // Dialog > $('#dialog').dialog({ > autoOpen: false, > width: 600, > buttons: { > "Ok": function() { > > $(this).dialog("close"); > }, > "Cancel": function() { > > $(this).dialog("close"); > } > } > }); > > // Dialog Link > $('#dialog_link').click(function(){ > $('#dialog').dialog('open'); > return false; > }); > > > }); > </script> > > We are getting the error: $ is undefined on line 2 > We also tried switching the $ to jQuery for the no conflict issue just > in case but it didn't work. > This exact same code works in html, but when deployed in JBoss it > doesn't. > > Any suggestions for us? Thanks! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---