You can use the jQuery .load() method to load the page into the dialog, here's how:
$("#dialog").dialog({ autoOpen: false, position: 'center' , title: 'EDIT', draggable: false, width : 300, height : 40, resizable : false, modal : true, }); $("#dialog_trigger").click( function() { $("#dialog").load('path/to/file.html', function() { $("#dialog").dialog("open"); }); })
This assumes that there is a dialog box identifier in the dialog box, and there is another element with the dialog_trigger identifier that is clicked to open it. You would put both of them in your finished document so that the dialog was done when the page loaded, if it wasn’t, this would lead to an easy but noticeable delay for the user, as he did.
Zack source share