G
gfaraj
Hello, I'm working on an ajax application in which I request things
from my php documents. The php responds in XML format. Now, the problem
is that when I receive that data using the ActiveX object
Msxml2.XMLHTTP, it formats my responseText, even though the
Content-type is text/plain.
The php file is here: http://rafb.net/paste/results/sIDyVF79.html
The javascript used to get the response:
http://rafb.net/paste/results/rkwyRD81.html
Now, in firefox I get the response as is sent by php. In IE, I get it
formatted as if were going to be "viewed". For example:
IE's responseText:
<?xml version="1.0" ?>
- <fxlresponse>
<error id="0" />
<login session="9fhih3jljhvcnk3v5ji8jdths3" id="1" name="gfaraj"
fullname="George Faraj" type="1" />
</fxlresponse>
FF's responseText:
<?xml version="1.0"?> <fxlresponse> <error id="0" /> <login
session="dnuv2gcr0tav8mub9mc5a3tlr7" id="1" name="gfaraj"
fullname="George Faraj" type="1" /> </fxlresponse>
Why does IE do this? I tried setting the Content-type to text/xml, and
use the responseXML.xml property, but FF didn't like that.
I was thinking of just returning responseXML to the handler, but since
the handler is a Java (GWT) function, I'm not sure how I should do
that.
Does anyone have any idea of how to fix this?
Thanks.
from my php documents. The php responds in XML format. Now, the problem
is that when I receive that data using the ActiveX object
Msxml2.XMLHTTP, it formats my responseText, even though the
Content-type is text/plain.
The php file is here: http://rafb.net/paste/results/sIDyVF79.html
The javascript used to get the response:
http://rafb.net/paste/results/rkwyRD81.html
Now, in firefox I get the response as is sent by php. In IE, I get it
formatted as if were going to be "viewed". For example:
IE's responseText:
<?xml version="1.0" ?>
- <fxlresponse>
<error id="0" />
<login session="9fhih3jljhvcnk3v5ji8jdths3" id="1" name="gfaraj"
fullname="George Faraj" type="1" />
</fxlresponse>
FF's responseText:
<?xml version="1.0"?> <fxlresponse> <error id="0" /> <login
session="dnuv2gcr0tav8mub9mc5a3tlr7" id="1" name="gfaraj"
fullname="George Faraj" type="1" /> </fxlresponse>
Why does IE do this? I tried setting the Content-type to text/xml, and
use the responseXML.xml property, but FF didn't like that.
I was thinking of just returning responseXML to the handler, but since
the handler is a Java (GWT) function, I'm not sure how I should do
that.
Does anyone have any idea of how to fix this?
Thanks.