I am trying to display a popup by extracting html data using the GET method and adding to the div using the .html () method. below is the code I wrote for it. This works fine in IE and Firefox, but it doesn't work in Chrome and Safari.
function openPopupWindow(url, width) { $.ajax({ url: url, type: 'GET', timeout: 180000, success: function(data){ var popUpBody = $("div.popupDivClass").html(data); $(popUpBody).dialog({ autoOpen: false, resizable: false, width:width, modal: true });
I get the following exception:
Unsuccessful error: INVALID_STATE_ERR: DOM 11 exception - jquery-1.4.4.min.js: 122
Any suggestions?
source share