J
John Byrne
Hi,
I have an Ajax call on my ASP page that calls another ASP which returns a
file which is data in XML format and the file is of content-type of text/xml.
This call works OK when used from IE6 (it uses the ActiveX object) but
something strange is happening under IE7.
Under IE7, the call works OK and I can do an alert(req.responseText) on the
client side and it displays the data returned in XML format.
But when I try to access the data using responseXML it keeps returning an
empty document. Even doing alert(req.responseXML.childNodes.length) displays
0, but I know that there is data.
Any ideas as to what is wrong?
I tried running under Firefox and it complains that the <?xml... is not on
the first line - and this is caused by the @Page directive inserting a blank
line - also any ideas on how to stop the page directive from creating blank
lines???
Thanks
I have an Ajax call on my ASP page that calls another ASP which returns a
file which is data in XML format and the file is of content-type of text/xml.
This call works OK when used from IE6 (it uses the ActiveX object) but
something strange is happening under IE7.
Under IE7, the call works OK and I can do an alert(req.responseText) on the
client side and it displays the data returned in XML format.
But when I try to access the data using responseXML it keeps returning an
empty document. Even doing alert(req.responseXML.childNodes.length) displays
0, but I know that there is data.
Any ideas as to what is wrong?
I tried running under Firefox and it complains that the <?xml... is not on
the first line - and this is caused by the @Page directive inserting a blank
line - also any ideas on how to stop the page directive from creating blank
lines???
Thanks