Modal dialogs in Internet Explorer are a somewhat curious creature. Here are some of the problems that I have encountered and their workarounds:
| Problem | Solution / Workaround |
|---|---|
|
Postback of a form within a modal dialog causes a new window to open |
Use one of the following:
|
|
Navigation to a new page within a modal dialog causes a new window to open |
Put all of the dialog’s content within an |
|
The |
No solution is known to actually capture the event.
As for accessing
function getExternalOM()
{
// For IE windows, window.external will exist but will not have any
// methods. <starwars>This isn't the window.external we are looking
// for.</starwars>
if ("foo" in window.external) {
return window.external;
}
if (window.dialogArguments != null &&
window.dialogArguments.externalOM != null) {
return window.dialogArguments.externalOM;
}
return null;
}
|
Recent Comments