we are loading jquery scripts in our header tag of a sitemesh decorator JSP like this:
<head>
<script src="${prefix}/resources/js/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${prefix}/resources/js/jquery/jquery-ui-1.8.20.custom.min.js" type="text/javascript"></script>
</head>
now i am creating a autocomplete combobox like the one @ http://jqueryui.com/resources/demos/autocomplete/combobox.html
on click of an tag i am loading another jsp into a dialog box like below:
$.ajax({
url: <some url>,
success: <create my dialog>
});
This JSP inside dialogue box also gets decorated by sitemesh and has the same scripts in tag of it. The dialogue works fine but now after this ajax call my combobox() stops working and on console the error is:
$().combobox is not a function..
This is an urgent defect for me. has someone come across this issue before ? is it related to jquery script caching or loading?
We could reproduce this issue both in firefox and IE 9.