日期:2014-05-18  浏览次数:20504 次

js访问ashx文件的方法
多多益善...现在程序怎么都访问不了ashx文件了...想请教各位,看有没有别的方法

js在f文件夹下.File.ashx在根目录下...

../File.ashx可以访问根目录下的File文件吗?

------解决方案--------------------
<script src="xxx.ashx"></script>
------解决方案--------------------
<img src="myHttpHander.ashx?id=1" width="20" height="20" />

var url = "/myHttpHander.ashx?id=" + escape(Txt.value); 
xmlReq.open("get", url, true);
xmlReq.onreadystatechange = callBack;
xmlReq.send(url); 
function callBack() {}
------解决方案--------------------
探讨
<script src="xxx.ashx"> </script>