读书人

IIS7.5已启用父路径new Ajax.Reque

发布时间: 2012-12-29 10:28:09 作者: rapoo

IIS7.5已启用父路径,new Ajax.Request('../../路径,options);404错误无法找到资源

iis7.5, 无法自动根据相对路径找到对应网页
IIS7.5已启用父路径,new  Ajax.Request('/./路径,options);404异常无法找到资源
function selectFile(type,obj,height,width)
{

var vitualPath=getRootPath();
var ShowObj = obj;
if(isArray(obj) && obj.length > 1)
ShowObj = obj[1];
showfDiv(ShowObj,"loading...",width);
LastSelectObj = obj;

var options={
method:'get',
parameters:"heights="+ height,
onComplete:function(transport)
{
var returnvalue=transport.responseText;
if (returnvalue.indexOf("??")>-1)
showfDiv(ShowObj,'Error',width);
else
var tempstr=returnvalue;
showfDiv(ShowObj,tempstr,width);
}
};
var arrtype=type.split("|")[0]
switch(arrtype)
{
case "file":
new Ajax.Request('../../configuration/system/iframe.aspx?FileType=file',options);
break;
case "pic":
new Ajax.Request('../../configuration/system/iframe.aspx?FileType=pic',options);
break;
[解决办法]

引用:
http://localhost/nbcms/configuration/system/iframe.aspx
用VS2010 调试模式能取得完整路径,弹出对话框。
但是放在IIS7.5正式环境下,就只能得到/configuration/system/iframe.aspx

百思不得其解。


你的这部分内容是不是放到一个虚拟路径下一级了.

读书人网 >IIS

热点推荐