Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: When you access an external document by using a link in an inline frame in Internet Explorer 7, the value of the document object is returned as "undefined"


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You create a Web page in an inline frame.
  • The Web page contains a link to an external document such as a PDF file.
  • You use a script block to reference the document object.
  • You access the external document by using the link in the inline frame in Windows Internet Explorer 7.
In this scenario, the value of the document object is returned as "undefined."

Note This problem does not occur if you use an inline script to reference the document object.

↑ Back to the top


Resolution

Security update information

To resolve this problem, install the most current cumulative security update for Internet Explorer. To install the most current updates, visit the following Microsoft Web site: For more technical information about the most current cumulative security update for Internet Explorer, visit the following Microsoft Web site: Note This fix was first included in security update 937143 (MS07-045). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
937143 MS07-045: Cumulative Security Update for Internet Explorer

Service pack information

To resolve this problem, obtain the latest service pack for Windows Vista. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
935791 How to obtain the latest Windows Vista service pack

Hotfix information

Prerequisites

You must have Internet Explorer 7 installed to apply this hotfix.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Windows Vista, 32-bit versions
File nameFile versionFile sizeDateTimePlatform
Ieframe.dll7.0.6000.205786,059,00813-Apr-200702:36x86
Ieui.dll7.0.6000.20578180,73613-Apr-200702:36x86
Windows Vista, 64-bit versions
File nameFile versionFile sizeDateTimePlatform
Ieframe.dll7.0.6000.205787,059,45613-Apr-200703:38x64
Ieui.dll7.0.6000.20578228,35213-Apr-200703:38x64
Microsoft Windows Server 2003, x86-based versions
File nameFile versionFile sizeDateTimePlatform
Ieframe.dll7.0.6000.205796,059,00819-Apr-200718:16x86
Windows Server 2003, x64-based versions
File nameFile versionFile sizeDateTimePlatformService pack (SP) requirementService branch
Ieframe.dll7.0.6000.205797,059,45619-Apr-200704:36x64SP2Not applicable
Wieframe.dll7.0.6000.205796,059,00819-Apr-200704:36x86SP2WOW
Windows Server 2003, Itanium-based versions
File nameFile versionFile sizeDateTimePlatformService pack (SP) requirementService branch
Ieframe.dll7.0.6000.2057911,550,20819-Apr-200704:38IA-64SP2Not applicable
Wieframe.dll7.0.6000.205796,059,00819-Apr-200704:38x86SP2WOW
Microsoft Windows XP
File nameFile versionFile sizeDateTimePlatform
Ieframe.dll7.0.6000.205796,059,00819-Apr-200717:45x86

Registry information

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

After you apply this hotfix, you must enable this hotfix. To do this, follow these steps:
  1. Make sure that you exit Internet Explorer.
  2. Click Start, click Run, type regedit in the Open box, and then click OK.
  3. Locate the following registry subkey, and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl
  4. On the Edit menu, point to New, and then click Key.
  5. Type FEATURE_DISCONNECT_WEBOC_WHEN_NOT_DOCHOSTING_KB935579, and then press ENTER.
  6. Click FEATURE_DISCONNECT_WEBOC_WHEN_NOT_DOCHOSTING_KB935579.
  7. On the Edit menu, point to New, and then click DWORD Value.
  8. Type Iexplore.exe, and then press ENTER.
  9. Right-click Iexplore.exe, and then click Modify.
  10. In the Value data box, type 1, and then click OK.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Windows Vista Service Pack 1.

↑ Back to the top


More information

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Steps to reproduce the problem

  1. Create an HTML page that contains the following code:
    <html>
    <body>
    Below is an inline frame<br>
    <iframe src="test.htm" width="90%" height="90%"></iframe>
    </body>
    </html>
  2. Save the HTML page that you created in step 1 as Frame.htm.
  3. Create and then save a Portable Document Format (PDF) file that is named Test.pdf.
  4. Create an HTML page that contains the following code:
    <html>
    <body>
    <a href="test.pdf">Test.pdf</a><br>
    <button onclick="Test2()">Show document from script block</button><br>
    <button onclick="alert(document)">Show document from inline script</button>
    <script language="javascript">
    function Test2()
    {
        alert(document);
    }
    </script>
    </body>
    </html>
    
  5. Save the HTML page that you created in step 4 as Test.htm.
  6. Configure Adobe Reader so that PDF files can be opened externally. To do this, follow these steps:
    1. Open Adobe Reader.
    2. On the Edit menu, click Preferences.
    3. In the Preferences dialog box, click Internet in the Categories list.
    4. In the Web Browser Options area, click to clear the Display PDF in browser check box, and then click OK.
  7. If you are prompted to restart the computer, restart the computer.
  8. In Internet Explorer 7, open the Frame.htm file.
  9. Click the link in the inline frame. The content of the PDF file appears.
  10. Click Show document from script block. You receive the following warning message:
    undefined
    Note If you click Show document from inline script, this problem does not occur.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.

↑ Back to the top


Keywords: KB935579, kbqfe, kbfix, atdownload, kbvistasp1fix

↑ Back to the top

Article Info
Article ID : 935579
Revision : 5
Created on : 10/8/2011
Published on : 10/8/2011
Exists online : False
Views : 513