-----只要调用以下AJAX 代码就出现HTTP 错误 403 ----
C#.net中 ,如果调用以下代码就会出现下面的错误。请高手指教。
HTTP 错误 403 - 禁止访问
Internet Explorer
function postdata(msg,url,data)
{
var xmlhttp=createxmlhttp();
xmlhttp.open("post", url, true);
xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlhttp.onreadystatechange=callbackpassagain;
xmlhttp.send(data);
}
function createxmlhttp()
{
var xmlhttp=false;
try
{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
{
xmlhttp = new XMLHttpRequest();
if (xmlhttp.overrideMimeType)
{
//设置MiME类别
xmlhttp.overrideMimeType('text/xml');
}
}
return xmlhttp;
}
sf ,怎么调用 的?
好像是你请求的网页有问题
嗯,有理
403应该是没有访问的权限,被禁止访问了。
肯定你请求的页面出了问题 lz检查下
被请求的
相关问答:
我的页面里用的AJAX控件 但页面静止一段时间就会出现上面的一个错误是怎么会事呀 怎么解决啊
高手帮帮忙啊
将项目上级目录中的中文名称全部改成英文
楼上说的很清楚了。帮顶一下吧
这个问题不是很常 ......
第14章 的树型菜单的例子不能在IE中正常显示(树的结构可以展开,但展开后再点击就不能收缩了),但能在谷歌浏览器中使用,有看此书的朋友能指点下吗?
好贴 呵
dfgfgfgffffff
谢谢。
......
JScript code:
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
function ajaxTest() {
var starttime = document.getElementById(&q ......
ajax谁搞出来的技术啊
到底怎么回事啊,是微软弄的吗,还是google 啊,还是哪个浏览器公司啊
The concept behind the XMLHttpRequest object was originally created by the developers of Outlook Web Ac ......
ajax框架请求报500的错,是什么原因?????????????
500是服务器错误,异常信息呢?楼主什么信息都没有谁知道是什么错误
Method Error 500 - Maximum Length Exceeded with AJAX web service call
......