我用Ajax技术实现页面刷新图片怎么没效果呢? Response.Write(@"imgs\"+k+".jpg");这样也行?字符串和整数相加Response.Write(@"imgs/"+k.ToString()+".jpg"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if(xmlhttp.readystate==4 && xmlhttp.readystate=='complete')这句应该是if(xmlhttp.readyState==4 && xmlhttp.status==200) 試下調用這個類function AJAXRequest() { var xmlObj = false; var CBfunc,ObjSelf; ObjSelf=this; try { xmlObj=new XMLHttpRequest; } catch(e) { try { xmlObj=new ActiveXObject("MSXML2.XMLHTTP"); } catch(e2) { try { xmlObj=new ActiveXObject("Microsoft.XMLHTTP"); } catch(e3) { xmlObj=false; } } } if (!xmlObj) return false; this.method="get"; this.url; this.async=true; this.content=""; this.callback=function(cbobj) {return;} this.send=function() { if(!this.method||!this.url||!this.async) return false; this.url=this.url.replace(/\,/g,'\\'); xmlObj.open (this.method, this.url, this.async); if(this.method=="POST") xmlObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); xmlObj.onreadystatechange=function() { if(xmlObj.readyState==4) { if(xmlObj.status==200) { ObjSelf.callback(xmlObj); } } } if(this.method=="POST") xmlObj.send(this.content); else xmlObj.send(null); }} .net发送邮件功能 Asp.Net用户控件添加复选框属性 散分 大家快来抢分哦 新手请教ForEach问题,在线等,帮顶有分,谢谢 如何在web窗体中应用OCX控件?急急急 如何启动调试啊? 请教:我的首页为什么出不来呢? 给自定义控件加皮肤怎么加? asp.net登录页面跳转问题 关于填写日期的一个问题 未包含带有 ParameterName“@Original_SaleId”的 SqlParameter????? foreach报错......什么叫做指定的转换无效。
这句应该是
if(xmlhttp.readyState==4 && xmlhttp.status==200)
function AJAXRequest() {
var xmlObj = false;
var CBfunc,ObjSelf;
ObjSelf=this;
try { xmlObj=new XMLHttpRequest; }
catch(e) {
try { xmlObj=new ActiveXObject("MSXML2.XMLHTTP"); }
catch(e2) {
try { xmlObj=new ActiveXObject("Microsoft.XMLHTTP"); }
catch(e3) { xmlObj=false; }
}
}
if (!xmlObj) return false;
this.method="get";
this.url;
this.async=true;
this.content="";
this.callback=function(cbobj) {return;}
this.send=function() {
if(!this.method||!this.url||!this.async) return false;
this.url=this.url.replace(/\,/g,'\\');
xmlObj.open (this.method, this.url, this.async);
if(this.method=="POST") xmlObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlObj.onreadystatechange=function() {
if(xmlObj.readyState==4) {
if(xmlObj.status==200) {
ObjSelf.callback(xmlObj);
}
}
}
if(this.method=="POST") xmlObj.send(this.content);
else xmlObj.send(null);
}
}