IE7没有responseXML? [英] IE7 without responseXML?
问题描述
我下载了IE7并尝试了原生的XMLHttpRequest支持。我认为在IE7中有一个名为XMLHttpRequest的对象。但我问我
为什么它被称为XMLHttpRequest。
我向XML文件发出请求(正确发送带有text / xml标题)
但IE7在使用responseXML时返回与IE 5.5 / 6相同的错误,这是一个带有节点xml的
XML构造,其中不包含任何东西。
Firefox和Opera以及Netscape 7.1(是的,)正确地做到了。与微软有什么关系?b $ b。他们会继续IE悲剧吗?
http://dropie.com
I downloaded IE7 and tried out the native XMLHttpRequest support. I
think there is an object in IE7 called "XMLHttpRequest" but I ask me
why it is called "XML"HttpRequest.
I made a request to an XML file (correctly sent with text/xml header)
but IE7 returns the same shit as IE 5.5/6 when I use responseXML, an
XML construct with a node "xml", which contains nothing.
Firefox and Opera and Netscape 7.1 (yeah,) do it correctly. What''s goin
on with Microsoft. Will they continue with IE tragedy?
http://dropie.com
推荐答案
如果我希望每个浏览器都支持XMLHttpRequest,我该怎么办
做:
我必须测试我的浏览器是否具有原生XMLHttpRequest(不是在IE5.5 / 6
和可能7(可以关闭)) )或激活ActiveX(Ie5.5 / 6)
我必须确保不使用IE,因为IE最多7个不准备XML。
所以你必须找到另一种阅读XML的解决方案。一种是通过Iframe和PHP文件发出一个
请求,该文件读取XML文件并以text / html格式发送给它。现在你必须使用xmljs
( http://xmljs.sourceforge.net )从
responseText解析XML树。
我们必须等待几年,直到99%的浏览器都是Ajax
准备好了。如果我们不想等待并且不想找到一个后备
解决方案,我们应该停止谈论XML;)
greetz
Andi,Ulm,德国
If I want every browser to support "XML"HttpRequest, what do I have to
do:
I have to test if my browser has native XMLHttpRequest (not in IE5.5/6
and possibly 7 (can be switched off)) or activated ActiveX (Ie5.5/6)
and I have to be sure not to use IE because IE up to 7 isn''t XML ready.
So you have to find another solution to read XML. One is to make a
request via Iframe and PHP file that reads an XML file and sends it
back as text/html. Now you have to use xmljs
(http://xmljs.sourceforge.net) to parse an XML tree from the
responseText.
We have to wait some years until 99% of the browsers will be Ajax
ready. If we don''t want to wait and don''t want to find a fallback
solution, we should stop talking about XML;)
greetz
Andi, Ulm, Germany
Firefox和Opera以及Netscape 7.1(是的,)正确地做到了。什么是goin
Firefox and Opera and Netscape 7.1 (yeah,) do it correctly. What''s goin
与Microsoft合作。他们会继续IE悲剧吗?
on with Microsoft. Will they continue with IE tragedy?
为什么他们不只是购买/使用/窃取Firefox?内联网上的人可以继续使用IE 6.
彼得
Why don''t they just buy/use/steal Firefox? The people on intranets can
just continue with IE 6.
Peter
pe**********@gmail.com 写道:
> Firefox和Opera以及Netscape 7.1(是的,)正确地执行它。与微软有什么关系?他们会继续IE悲剧吗?
>Firefox and Opera and Netscape 7.1 (yeah,) do it
correctly. What''s goin on with Microsoft. Will
they continue with IE tragedy?
为什么他们不只是购买/使用/窃取Firefox?内联网上的人们可以继续使用IE 6.
Why don''t they just buy/use/steal Firefox? The people
on intranets can just continue with IE 6.
这是必要的,因为IE 7没有任何问题
with responseXML。程序员错误是这里最有可能的解释
评论,并且说某些东西不起作用,很长一段时间从
来证明它不是。
Richard。
That is a long way from necessary as IE 7 does not have any problems
with responseXML. Programmer error is the most likely explanation for
comments here, and saying something doesn''t work is a long way from
demonstrating that it doesn''t.
Richard.
这篇关于IE7没有responseXML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!