Microsoft KB Archive/323069

From BetaArchive Wiki
Knowledge Base


Internet Explorer Does Not Go to IFRAME That Is Set As a Target of FORM by Using an XSL Style Sheet

Article ID: 323069

Article Last Modified on 11/15/2007



APPLIES TO

  • Microsoft Internet Explorer 5.5 Service Pack 1
  • Microsoft Internet Explorer 5.5 Service Pack 2
  • Microsoft Internet Explorer 5.5 Service Pack 1
  • Microsoft Internet Explorer 5.5 Service Pack 2
  • Microsoft Internet Explorer 5.5 Service Pack 1
  • Microsoft Internet Explorer 5.5 Service Pack 2
  • Microsoft Internet Explorer 6.0, when used with:
    • Microsoft Windows XP Home Edition
    • Microsoft Windows XP Professional
    • Microsoft Windows XP Media Center Edition 2002
    • Microsoft Windows XP Tablet PC Edition
    • Microsoft Windows 2000 Advanced Server
    • Microsoft Windows 2000 Datacenter Server
    • Microsoft Windows 2000 Professional Edition
    • Microsoft Windows 2000 Server
    • Microsoft Windows NT Server 4.0 Standard Edition
    • Microsoft Windows NT Server 4.0, Terminal Server Edition
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows 98 Second Edition



This article was previously published under Q323069

SYMPTOMS

When you use Internet Explorer to view an XML page that is transformed by using an XSL style sheet that generates an IFRAME and a FORM that has the target set to the IFRAME, when the form is submitted, you view the main page instead of the IFRAME.

For example, this problem occurs in the following scenario:

  1. You create the following three files:
    • Test.xml

         <?xml version="1.0"?>
         <?xml:stylesheet type="text/xsl" href="test.xsl"?>
         <DISPLAY></DISPLAY>
                              
    • Test.xsl

         <?xml version="1.0" encoding="iso-8859-1"?>
         <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/xsl/transform" version="1.0">
         <xsl:output method="html" encoding="iso-8859-1"/>
         <xsl:template match="/">
         <html>
         <body>
          <form action="iframe.asp" id="f" name="f" method="post" target="agents">
                      <input type="submit" id="r" name="r" value="Go"/>
              </form>
              <iframe id="agents" name="agents" src="/?scid=iframe.asp"></iframe>
         </body>
         </html>
         </xsl:template>
         </xsl:stylesheet>
                              
    • Iframe.asp

         <% 
         response.write "<?xml version=""1.0""?><DISPLAY>some text</DISPLAY>"
         %>
                              
  2. In Internet Explorer, open the Test.xml file.
  3. Click Go.

Result: Data is posted the main page.
Expected results: The data is posted in the IFRAME (the form target).

CAUSE

The problem occurs because MSHTML does not find the window that is associated to the target's IFRAME.

RESOLUTION

A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Internet Explorer 6 service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

The English version of this fix for Internet Explorer 5.5 Service Pack 2 has the file attributes (or later) 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 tool in Control Panel.

   Date         Time   Version             Size   File name
   --------------------------------------------------------------
   28-Aug-2002  16:01  5.50.4920.2800  2,756,368  Mshtml.dll       

                



WORKAROUND

To work around this issue, you can perform a server-side transformation of the XML page.

STATUS

Microsoft has confirmed that this is a problem in Internet Explorer 6.

Keywords: kbhotfixserver kbbug kbfix kbie600presp2fix kbqfe KB323069