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!