简体   繁体   English

多个 XMLHttpRequest.send() 不起作用

[英]Multiple XMLHttpRequest.send() not working

Im using Multiple我使用多个

//process1
xmlHttp = GetXmlHttpObject();
var url = context+"/user_permission.do?&method=allotedContainer&row="+data;
xmlHttp.onreadystatechange = allotedContainerChanged;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);

//process2
xmlHttp = GetXmlHttpObject();
var url = context+"/user_permission.do?&method=notwallotedContainer&row="+data;
xmlHttp.onreadystatechange = notallotedContainerChanged;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);

when i run both process the second only gets printed.当我运行这两个过程时,第二个只会被打印出来。 but first one is not responding...但第一个没有响应......

Try changing the variable name 'xmlHttp' for the second process and ensure the URL is correct or not .尝试更改第二个进程的变量名 'xmlHttp' 并确保 URL 正确与否。 I assume 'method=notwallotedContainer' may have a spellling mistake.我认为 'method=notwallotedContainer' 可能有拼写错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM