Article ID: 814458 - Last Review: May 16, 2007 - Revision: 3.5 HTML Dialog Window Does Not Work Correctly or You Receive a Script Error MessageSYMPTOMSAfter you install the February, 2003, Cumulative Patch for
Internet Explorer (MS03-004), an HTML dialog window that is opened by a Web
page may not work correctly, or you may receive a script error
message. CAUSEThis problem occurs when script in an HTML dialog window
(that is opened by using the showModalDialog or showModelessDialog method) tries to set the security domain of the document to a
different value by using the document.Domain property. After you install the February, 2003, Cumulative Patch
for Internet Explorer (MS03-004), this type of domain change is denied to
prevent a malicious Web site operator from accessing information in another
Internet domain, or on your local computer. WORKAROUNDContact the administrator or content developer for the Web
site to resolve this issue. Content developers who must set the domain property
for the dialog window to another value but must still have access to the dialogArguments property values can work around this issue by creating a local
variable to store the dialogArguments value before the document.Domain property is used to change the domain. After the domain change,
the local variable can be used in the rest of the script to use the information
that was passed to the showModalDialog or showModelessDialog method as arguments. STATUS This
behavior is by design. MORE INFORMATIONThe showModalDialog and showModelessDialog methods support three parameters: the Uniform Resource Locator
(URL), the arguments, and the features of the dialog window. Scripts that run
in a dialog window that is created by using the showModalDialog or showModelessDialog method have access to only the URL that was used to create the
dialog window when they try to change the domain. After you install the
February, 2003, Cumulative Patch for Internet Explorer (MS03-004), the document.Domain property cannot be used to change the domain of an HTML dialog
window to a domain that is different from the URL that appears in the dialog
window. For additional information about the February, 2003, Cumulative Patch for Internet Explorer (MS03-004), click the following article number to view the article in the Microsoft Knowledge Base: 810847
(http://support.microsoft.com/kb/810847/EN-US/
)
MS03-004: February, 2003, Cumulative Patch for Internet Explorer
REFERENCESFor additional information about the showModalDialog method, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/ms536759.aspx
(http://msdn2.microsoft.com/en-us/library/ms536759.aspx)
For additional information about the showModelessDialog method, visit the following Microsoft Web site:http://msdn2.microsoft.com/en-us/library/ms536761.aspx
(http://msdn2.microsoft.com/en-us/library/ms536761.aspx)
For additional information about the domain property, visit the following Microsoft Web site:http://msdn2.microsoft.com/en-us/library/ms533740.aspx
(http://msdn2.microsoft.com/en-us/library/ms533740.aspx)
APPLIES TO
| Article Translations
|
Back to the top
