views:

10

answers:

0

Hi, I have an HTML form with a post method and target to an iframe (on the same page). The expected response from the server is an XML (content type is text/xml). I noticed that when the “Turn on feed reading view” is checked, IE grab the response and I get an empty response in the onload event of the target iframe. If I uncheck the “Turn on feed reading view”, then I get the correct response.

Here is a snippet of the code I am using.

HTML Code:

    <form method='post'  target="HiddenMessageFrame" action='../servlet/MainServlet&amp;@FORM_NAME@=frmSubmit&amp;@COMMAND_EVENT@=eventSubmit' id='HIDDEN_FORM' style="display:none;"></form>
    <iframe TABINDEX='-1' onload="DoFeedback();" id="HiddenMessageFrame" name="HiddenMessageFrame" style="display:none;"  src="../html/emptyframe.html"></iframe>

JS code to handle the feedback:

            function DoFeedback()
                {
                    var oXML = HiddenMessageFrame.document.XMLDocument;//oXML is  not define in case “Turn on feed reading view” is checked.
                }

How do I force IE to realize that the XML is not a feed but a regular xml response?

Thanx.