Wednesday, September 13, 2006

open modal dialog in IE

The following code will open a modal dialog in IE with jscript.

window.showModalDialog("SMD_target.htm, null,"dialogHeight: 250px; dialogWidth: 200px; dialogTop: 200px; dialogLeft: 200px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;");
ref: http://msdn.microsoft.com/workshop/samples/author/dhtml/refs/showModalDialog.htm
ref: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/showmodaldialog.asp
ref: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/windows_frames_dialogs.asp

ref:http://www.devx.com/tips/Tip/14231Put <base target="_self"> in the header of the aspx page will make the page staying in the dialog when do the postback.

0 comments: