The information in this article applies to:
SYMPTOMS
Script code that attempts to access a script or object in a different frame
may get the following script error message:
CAUSE
Internet Explorer 4.0 implements cross-frame security. A script or object
in one frame is not allowed to access scripts or objects in another frame
when the documents referenced by the frames' SRC attribute specify Web
servers in different second-level domains. This corresponds to the "domain-
name.XXX" portion of the full server name syntax "server.domain-name.XXX".
http://msdn.microsoft.com/workshop/default.aspFor more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp RESOLUTION
To prevent this error, documents that interact with each other must be
hosted by servers on the same domain.
Under Internet Explorer 4, if the page with the cross-frame script resides
on a different server from the frameset source, the above script that sets
document.domain will need to be included in the framset source as well.
STATUSThis behavior is by design. MORE INFORMATIONFor example, given the following FRAMESET:
Script in the "Server1Frame" frame is not permitted to access script or
objects in the "Server2Frame" frame, and vice versa.
The following example script code in server1.html causes the "Permission Denied" error, given that RemoteTextBox is an object created on the server2.html document:
Cross-Frame Security uses the concept of a "security context" to make cross-
frame scripting decisions. Security context takes into account the
protocol, domain, and zone of Internet documents. Any differences in these
three between the document containing the script and the document in
another frame or window that the script is trying to manipulate causes a
cross-frame security violation. For example, HTTP documents cannot script
HTTPS documents, and sites in the Restricted Sites zone cannot script sites
in the Local intranet zone.
Internet Explorer ultimately appeals to the Security Manager when script attempts to access another document. Technically, Internet Explorer uses the IInternetSecurityManager::GetSecurityId() function to help it make security context decisions. The security identification returned must match exactly for both URLs in a cross-frame situation. Please see the following references for more information on the Internet Security Manager. REFERENCESFor more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp - Dynamic HTML; DHTML Object Model; Cross-Frame Scripting and Security - RFC 1591: "Domain Name System Structure and Delegation" - RFC 1034: "DOMAIN NAMES - CONCEPTS AND FACILITIES" - Security & Cryptology; Networking protocols & Data formats © Microsoft Corporation 1999, All Rights Reserved. Additional query words:
Keywords : kbScript kbIE500 AXSDKIEScripting kbIEFAQ |
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |