保存复选框(3)
来源:互联网 发布:西安行知教育老师待遇 编辑:程序博客网 时间:2024/05/21 12:44
var http_request;
if(window.XMLHttpRequest){
http_request=new window.XMLHttpRequest();
if(http_request.overrideMineType){
http_request.overrideMineType('text/plain');
http_request.overrideMineType('text/html');
http_request.overrideMineType('text/javascript, application/javascript');
}
}else if(window.ActiveXObject){
try{
http_request = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
http_request = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){
alert("construct MS Ajax failed");
}
}
} else {
alert("unknow explorer");
}
http_request.open("GET",url,false);
try{
http_request.send(null);
}catch(e){}
//Ajax处理结束,无论处理成功还是失败,都恢复页面元素功能
if(http_request.status=="200"){
unlockAll();
return true;
}else{
box.checked=null;
alert("server not available");
unlockAll();
return false;
}
unlockAll();
}
if(window.XMLHttpRequest){
http_request=new window.XMLHttpRequest();
if(http_request.overrideMineType){
http_request.overrideMineType('text/plain');
http_request.overrideMineType('text/html');
http_request.overrideMineType('text/javascript, application/javascript');
}
}else if(window.ActiveXObject){
try{
http_request = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
http_request = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){
alert("construct MS Ajax failed");
}
}
} else {
alert("unknow explorer");
}
http_request.open("GET",url,false);
try{
http_request.send(null);
}catch(e){}
//Ajax处理结束,无论处理成功还是失败,都恢复页面元素功能
if(http_request.status=="200"){
unlockAll();
return true;
}else{
box.checked=null;
alert("server not available");
unlockAll();
return false;
}
unlockAll();
}
- 保存复选框(3)
- 保存复选框(1)
- 保存复选框(2)
- 保存复选框,类文件(1)
- 保存复选框,类文件(2)
- thinkphp复选框数据保存
- 用数据库保存复选框状态(使用int值)
- springmvc 4+hibnate 4.0 复选框无法保存的问题
- 复选框如何设置全选并保存入库
- Checkboxes(复选框)
- 复选框(JCheckBox)
- Checkboxes(复选框)
- 复选框(JCheckBox)
- 复选框,复选框
- 页面上的复选框,然后保存到数据库,再从数据库取出来,看那个复选框被选中
- 美化复选框(给复选框添加样式)
- 3态复选框CheckBox
- 复选框(批量操作)
- ExpressJS中文文档
- js控制Div高度
- Nodejs+express 实战,实现系统监控功能
- oracle中如何创建dblink
- 保存复选框(2)
- 保存复选框(3)
- 使用axis2配置webservice服务
- MySQL索引的查看创建和删除
- oracle 组件的查看和收费
- ELF
- 使用 SCons 轻松建造程序
- item函数的用法
- 教你如何用Qt做透明的窗体,setMask,Qt,Opacity
- Android --- 图片处理的方法