最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
js 兼容ff ActiveXObject创建xmlhttp方法
时间:2011-01-17 编辑:简简单单 来源:一聚教程网
js 兼容ff activexobject创建xmlhttp方法
*/
function createxmlhttpobject()
{
var xobject = null;
try
{
xobject = new activexobject("msxml2.xmlhttp.4.0");
}
catch (e)
{
try
{
xobject = new xmlhttprequest();
if(xobject.overridemimetype){
xobject.overridemimetype('text/xml');
}
}
catch (e)
{
try
{
xobject = new activexobject("msxml2.xmlhttp");
}
catch (e)
{
try
{
xobject = new activexobject("microsoft.xmlhttp");
}
catch (e)
{
alert("error: unable to create xml http object!");
}
}
}
}
return xobject;
}
function initrequest(){
request = createxmlhttpobject();
}
相关文章
- js 操作xml文档 06-18
- 使用JSP + JAVABEAN + XML 开发的一个例子 01-12
- JSP 对 XML 的操作 01-12
- XML和JSP的联手 01-12
- VML绘图板②脚本--VMLgraph.js、XMLtool.js 01-12
- HTML简单购物数量小程序代码展示 10-31