我将自己的网页在本机上运行正常,但部署到服务器就出现先出现405的问题,然后就针将post方法改成get,然后就出现了404的错误代码。请教怎么解决?网址是http://www.stephenada.cn/部分代码:
js:(已将xmlhttp对象的创建封装起来了)
//获取文章
function getArticle(type)
{
//异步读取文章
type=encodeURIComponent(type);
var cbo=new CallBackObject();
cbo.OnComplete=Cbo_Complete;
cbo.OnError=Cbo_Error;
cbo.DoCallBack("http://www.stephenada.cn/data/getNewArticle.ashx?cate="+type);//这个是get的内容
}
function Cbo_Complete(responseText,responseXML)
{
//循环显示在六个元素框内
docs[index].innerHTML=responseText;
index++;
}
//错误处理
function Cbo_Error(status,statusText,responseText)
{
alert("Error");
alert(responseText);
}服务器端返回是responseText的。
因为代码太多,无法发上来,可以到上面的网址查看js。
请帮忙解决!
js:(已将xmlhttp对象的创建封装起来了)
//获取文章
function getArticle(type)
{
//异步读取文章
type=encodeURIComponent(type);
var cbo=new CallBackObject();
cbo.OnComplete=Cbo_Complete;
cbo.OnError=Cbo_Error;
cbo.DoCallBack("http://www.stephenada.cn/data/getNewArticle.ashx?cate="+type);//这个是get的内容
}
function Cbo_Complete(responseText,responseXML)
{
//循环显示在六个元素框内
docs[index].innerHTML=responseText;
index++;
}
//错误处理
function Cbo_Error(status,statusText,responseText)
{
alert("Error");
alert(responseText);
}服务器端返回是responseText的。
因为代码太多,无法发上来,可以到上面的网址查看js。
请帮忙解决!
网站拒绝显示此网页
HTTP 403
最可能的原因是:
此网站要求您登录。
您可以尝试以下操作:
返回到上一页。
更多信息 此错误(HTTP 403 禁止)意味着 Internet Explorer 可以连接到该网站,但是没有查看该网页的权限。有关 HTTP 错误的详细信息,请参阅帮助。
而且报的405错误么
是不是服务器没有安装frontpage扩展啊?
匿名权限的配置等等
只有同情了