All -
I am facing an issue with jquery UI dialog. There are multiple version of jquery on the page I am working. The code for calling jquery UI dialog is as follows:
<link href="http://code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="plugin.js"></script>
<script type="text/javascript">
(function($){
$('#loadDialog').dialog({
autoOpen: false,
height: 455,
width: 500,
modal: true
});
$('#btnClick').on("click", function(e){
e.preventDefault();
$('#loadDialog').load('dialogContent.cfm', function() {
$(this).dialog({ position: {at: "right"}});
$(this).dialog('open');
$(this).dialog('open');
})
})
}(jQuery));
</script>
html:
<div id="loadDialog" title="Dialog Window"></div>
The dialogContent.cfm that is loaded into the dialog window uses plugin.js to add content to DOM. The issue I am facing is that the dialog is no longer using version 1.10.2, but is using an older version of jQuery, there by failing to invoke the plugin. How can I make sure that the dialog window uses the latest version?