易截截图软件、单文件、免安装、纯绿色、仅160KB

100分!ajax请求错误

C# code:

<script type="text/javascript">
window.onload=function()
{
startRequest('get','../College.ashx','lxyc=2&time='+new Date().getTime()+'',ShowIt,true);


}
var xmlHttp1;
function createXMLRequest()
{
if(window.ActiveXObject)
{
xmlHttp1=new ActiveXObject("Microsoft.XMLHTTP");
}
else if(window.XMLHttpRequest)
{
xmlHttp1=new XMLHttpRequest();
}
else

{
alert("不能创建XMLHttpRequest");
}
}
function startRequest(method,url,pars,callbackfun,cache)
{
// alert(method+url+pars+callbackfun+cache);
if(typeof callbackfun != 'function'){
alert('The CallBackFun is not a function!');
}
if(cache){
pars += "&tmp="+Math.random();
}
createXMLRequest();
xmlHttp1.onreadystatechange = function(){
if(xmlHttp1.readyState==4)
{
if(xmlHttp1.status==200)
{
callbackfun(xmlHttp1);
xmlHttp1.abort();
}
else
{
xmlHttp1.abort();


相关问答:

DW 配置Ajax 环境问题..

想知道怎么在DW中运行Ajax


我运行的文件报这个错..
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening requir ......

为什么页面一加上Ajax就出错

查看源文件时出来的
<script type="text/javascript">
// <![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(Sys.UI._Upd ......

帮小妹看看ajax提交到action的问题

我在webRoot->idc->report->report_add.jsp页面中用ajax提交到action总是报这错
140 ERROR RequestProcessor:664 - Invalid path /idc/report/report/report_distb was requested
找不出原因,我又在新建 ......

ajax 登录 安全性

环境:
  1.现在做一个ajax的登录,密码在数据库是明文存储。
  2.提交页面是post提交方式。
  3.该网站是商业网站。
  4.后台是.net的c#
问题:
  1.登录时怎样才 ......

ajax问题

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xht ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号