My source code using jQuery v 1.7.1 and jQuery ui v 1.8.11 to generate pop-up's. They were working fine untill i updated my jQuery library file version to 1.8.3 and jQuery ui to 1.9.2. Once i updated these files i got this error,
"cannot call methods on dialog prior to initialization; attempted to call method 'destroy".
not to mention i updated unobtrusive library files too.
i am using my own custom css which has a close button image and this code to destroy pop up:
$("#Response_ID").dialog('destroy');
i am using this in asp.net mvc 3 project using @Ajax.ActionLink() which injects pop up on click i.e.
@Ajax.ActionLink("Click Here", Link to controller("ResponseDialog"), new AjaxOptions{ OnSuccess = "PopUpDialog" })
in my layout, i keep this hierarchy of including files.
* main.css file,
* jQuery v 1.8.3,
* jQuery unobtrusive files,
* jQuery ui 1.9.2.
please suggest your valuable thoughts about what is wrong here.