Home > Backend Development > PHP Tutorial > Javascript在IE中总报错――缺少对象!该如何解决

Javascript在IE中总报错――缺少对象!该如何解决

WBOY
Release: 2016-06-13 12:41:51
Original
1243 people have browsed it

Javascript在IE中总报错――缺少对象!
query0=mssql_query("select * from tb_xm where xm_pcid='1'");
$y=1; 
while($myrow0=mssql_fetch_array($query0)){
?>
function datawrite(){
if(xmlHttp.readyState==4 || xmlHttp.readyState==0){
xmlHttp.open("GET","kspf_conn1.php?online_xm="+""+"&online_user="+""+"&online_ytbyx="+ytbyx+"&online_mbnr="+mbnr+"&online_zjzb="+zjzb+"&online_ffjs="+ffjs+"&online_xyqj="+xyqj+"&online_jdjf="+jdjf+"&online_zhpf="+zhpf+"&online_sum="+sum,true);
xmlHttp.send(null);
}else{
alert("datawrite()中xmlHttp对象忙!");
setTimeout('datawrite()',1000);
}
}
datawrite();
}
?>
以上代码中循环读取项目表格中信息并通过XML打开kspf_conn1.php录入数据库,经检查kspf_conn1.php文件无误。但输入以上程序后出现缺少对象的错误,其中online_xm值代表项目名称,进入数据库后所可看到所有项目的名称均改为最后一个项目的名称。按理来说,写入的应当是不同的项目名称啊?

JavaScript php 缺少对象
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template