Microsoft Knowledge Base Email Alertz

Error message when you try to view a Web page that contains IFRAME elements in Internet Explorer: “Object does not support this property or method”

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 924926 - Last Review: May 16, 2007 - Revision: 1.5

Error message when you try to view a Web page that contains IFRAME elements in Internet Explorer: “Object does not support this property or method”

SYMPTOMS

When you try to view a Web page that contains IFRAME elements in Microsoft Internet Explorer, you receive the following script error message in Microsoft Internet Explorer:
Object does not support this property or method

CAUSE

If a Web page contains an IFRAME element and if an src attribute points to a Scalable Vector Graphics (SVG) file (.svg), the OnLoad event of the IFRAME element occurs before the OnLoad event of the .svg file. If the Web page tries to access the .svg file when the IFRAME OnLoad event occurs, you receive the error message that is mentioned in the "Symptoms" section.

A Web page that contains an IFRAME element and an src attribute that points directly to an .svg file is known as a "full-page embed." When you use a full-page embed to host an .svg file, it is the same as if you typed the URL for the .svg file in the address bar in Internet Explorer.

Microsoft Knowledge Base articles 912945 and 912812 describe recent ActiveX Control implementation changes. An external script is now used to create a Web page for a full-page ActiveX control. Therefore, use of the ActiveX control does not require activation. However, this implementation change modifies the order of events. The OnLoad event of the IFRAME element now occurs before the OnLoad event of the .svg file.

WORKAROUND

To work around this issue, use one of the following methods:
  • Make sure that the Web page does not access the .svg file in the OnLoad event handler of the IFRAME element. Instead, make sure that the .svg file is accessed only after it is initialized in its OnLoad event.
  • Use an external script to embed the .svg file directly on the top-level page. For more information about how to embed objects by using external script files, visit the following Microsoft Web site:
    http://msdn2.microsoft.com/en-us/library/ms537508.aspx (http://msdn2.microsoft.com/en-us/library/ms537508.aspx)
  • Make the IFRAME element point to an intermediate HTML page that embeds the .svg file. To do this, you may have to use an external script file to embed the .svg file on the intermediate page. If you do this, the ActiveX control does not require activation.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

APPLIES TO
  • Microsoft Internet Explorer 6.0, when used with:
    • Microsoft Windows Server 2003 Service Pack 1
    • Microsoft Windows Server 2003, Web Edition
    • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
    • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
    • Microsoft Windows XP Service Pack 2
Keywords: 
kbactivexscript kbactivexevents kbevent kbwebbrowser kbweb kbbug kbtshoot kbprb KB924926
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate