【发布时间】:2010-04-15 07:07:51
【问题描述】:
我正在尝试使用 xmlhttprequest 对象进行异步调用 所以它在 Internet Explorer 中完全可以正常工作,但对于 firefox 它不会工作
一个小代码sn-p的问题
if (req.readyState == 4)
{
if (req.status == 200) //here firefox gives status code always 0 and for IE works fine
{
//read response
} else {
alert("There was a problem with the request.");
}
}
【问题讨论】:
标签: javascript ajax asp.net-ajax xmlhttprequest