PRB: 'Permission Denied' calling window.external.isSubscribed()

Last reviewed: October 24, 1997
Article ID: Q175506
The information in this article applies to:
  • Internet Client SDK, version 4.0
  • Microsoft Internet Explorer (Programming), version 4.0

SYMPTOMS

Calling window.external.isSubscribed() from a script results in a "Permission Denied" error.

CAUSE

This is a side effect of Internet Explorer 4.0's cross-frame security feature where a script running in a document cannot access the unsafe properties or methods of another document which is hosted on a different domain.

STATUS

This behavior is by design.

MORE INFORMATION

The window.external.isSubscribed() method does not refer to the document.domain property. However, window.external.isSubscribed() will correctly determine whether the requested URL is in the same second level domain as the current document.

Two servers inside the same intranet are likely to be affected by this. A document at "http://server1" cannot check for a subscription to "http://server2" even if the two servers are on the same local network.

REFERENCES

For additional information on cross-frame security in Internet Explorer 4.0, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q167796
   TITLE     : PRB: "Permission Denied" When Scripting Across Frames

(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Lanie Kurata, Microsoft Corporation
Keywords          : InetSDKInfoDev kberrmsg
Technology        : kbInetDev
Version           : WINDOWS:4.0
Platform          : WINDOWS
Issue type        : kbprb


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.