JQuery UI Dialog invoke external URL

JQuery UI Dialog invoke external URL


I need to open an external URL(an .aspx) using JQuery UI Dialog, but the thing is I need to pass parameters to the url and then retrieve those parameters from the .aspx

I used to use window.showmodaldialog(url,parameters) and then from the .aspx window.dialogArguments... But because Chrome deprecates "showmodaldialog" sentence, I need to replace it using JQuery UI Dialog.

My code now: (Im not sure if it's ok and can't figured out how to retrieve parameters from the .aspx)

HTML:

<div id='newPopup' title='Modal popup'>

JS:

 var URL = "https://serverName/page.aspx"; var popup = $("#newPopup"); popup.html("<iframe id ='asd' style='border: 0px;' src='" + URL + "' width='100%' height='100%'></iframe>"); $("#newPopup").data('sharedObject',sharedObject); $("#newPopup").dialog({ modal: true, height: 768, width: 1024, buttons: { Ok: function() { $( this ).dialog( "close" ); } } });