Is there anything special that needs to done in order to call the UI
dialog within a custom plugin?
$('#'+opts.optionsDialog).dialog({
autoOpen: false,
width: 600,
buttons: {
"Ok": function() {
$(this).dialog("close");
},
"Cancel": function() {
$(this).dialog("close");
}
}
});
I am receiving an error on the code above:
$("#" + opts.optionsDialog).dialog is not a function
I'm using JQuery 1.3.2 and UI 1.7.2. I can't seem to find any examples
of using UI within a plugin. The plugin does not use the widget
factory ($.widget). I'm just trying to use the UI dialog within the
plugin.