<script language="javascript">
window.onLoad = new function(){
setInterval("CheckLock()",3000);
}
setInterval("CheckLock()",3000);
}
//可以调用js方法 也可以直接调用ajax执行代理
function checkTime(){
alert("ssssss");
}
function CheckLock()
{
var CM = new ActiveXObject("Microsoft.XMLHTTP");
alert("ssssss");
}
function CheckLock()
{
var CM = new ActiveXObject("Microsoft.XMLHTTP");
CM.open("POST","./ag_ajax?OpenAgent",false);
CM.setRequestHeader("Content-Type","text/xml");
CM.setRequestHeader("Content-Type","GBK");
CM.setRequestHeader("Content-Type","text/xml");
CM.setRequestHeader("Content-Type","GBK");
//encodeURIComponent是解决汉字乱码问题的
CM.send(""); //将前台的值传入到代理中
CM.send(""); //将前台的值传入到代理中
if(CM.readyState == 4)
{
var s = CM.responseText.replace(/(\n)/gi,"");
{
var s = CM.responseText.replace(/(\n)/gi,"");
//s为代理的返回值
}
}
}
</script>
</script>