Hi,
I am working on Witango Server 5.5 and I have come across an issue with IE7.
Maybe someone has either experienced this before or can point me in the right
direction here. I am using the window.XMLHttpRequest object in the browser to
retrieve XML content from the server.
When retrieving the XML (pasted below) from the server the XMLRequest objects
responseXML is empty in IE7 (i.e. it cannot load the XML thinking its not
valid). However, on IE6 it gets populated with the XML as expected. It appears
the problem is with using assign and request$httpHeader.
I use
<@ASSIGN request$httpHeader "HTTP/1.1 <@HTTPSTATUSCODE> <@HTTPREASONPHRASE>
<@crlf>Server: Witango <@version><@crlf>MIME-Version: 1.0<@crlf>Content-Type:
text/xml<@crlf><@SETCOOKIES><@crlf><@crlf>">.
When I check the XML received in the browser there is an extra return character
(or some other similar character) at the start of the XML.
When I remove the last <@crlf> from the assign and leave as follows :
<@ASSIGN request$httpHeader "HTTP/1.1 <@HTTPSTATUSCODE> <@HTTPREASONPHRASE>
<@crlf>Server: Witango <@version><@crlf>MIME-Version: 1.0<@crlf>Content-Type:
text/xml<@crlf><@SETCOOKIES><@crlf>"> there is no return character at the start
of the XML and the XML gets loaded in IE7.
Would anyone have experienced this before? Obviously removing the second<@crlf>
from the assign will solve the problem but is this creating an invalid
HttpHeader despite the fact that IE doesn't complain?
Thanks for any help,
Mike.
XML :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<response>
<method>reloadTabContents</method>
<result>
<scripthead>Test12345432</scripthead>
<bodyresult>Test</bodyresult>
</result>
</response>
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf