惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
V
Visual Studio Blog
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
J
Java Code Geeks
A
About on SuperTechFans
F
Fortinet All Blogs
B
Blog
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
G
Google Developers Blog
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
博客园_首页
博客园 - 叶小钗
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
云风的 BLOG
云风的 BLOG

博客园 - 清雨轩

用dom生成html文件.的常见问题 div+css制作企业网站经验收集 appendNode? 可以直接一个节点树 - 清雨轩 - 博客园 php(alexa排名查询) 下拉菜单 美工版(不用写代码) CSS学习随笔 windows2003 ftp及相关权限 php出现Unable to load dynamic library 'c:\php\extensions\php_mssql.dll' - 清雨轩 win2003的服务器配置. 关于引用,还是按值. 开发时会遇到..注意 个人javascript作品集 事件监听是可吃CPU的事情。以后还是不用事件监听 用正则改变字符串的处理速度。 正则表达式 不允许为空 下拉头像菜单 表单检测函数 [原创]使用js+xml制作的IE和FF都支持的树型菜单(程序不到4k哦) 个人觉得比较经典的菜单(来源:kijiji.cn) [转载]纯js解决小偷的乱码.(强)
faq:responseXML has no properties in firefox or responseX...
清雨轩 · 2006-10-03 · via 博客园 - 清雨轩
  • Errors reading XML data files
The errors "xmlDoc has no properties" may indicate slow server response or incorrect server MIME type setting. "documentElement is null or not an object" is usually caused by your server setting the wrong MIME type on your XML data file. If you can't change your server to set the MIME type to "text/xml" you can change your code to use "var xmlDoc = GXml.parse(request.responseText);" instead of "var xmlDoc = request.responseXML;". Also, an ampersand ('&') in the xml file may cause the xml file to behave as if it has no contents when trying to be read by the Google Map.

         以上内容摘自:http://mapki.com/index.php?title=FAQs
        意思:服务器输出类型不是xml型。我测试了以下asp 代码如下:
    <%@ language="jscript" codepage="65001"%>
<%
Response.charset="utf-8";
Response.ContentType="text/xml";
Response.Write("<?xml version='1.0' encoding='utf-8' ?>")
Response.Write("<root><name>a</name><name>b&amp;a</name></root>");
%>
  以上代码获取,在firefox下,也可以有ResponseXML的 [object XMLdocument]
   
  如果服务器类型是别的类型。请使用
   new DOMParser().parseFromString(req.responseText,'text/xml')