Using two xmlhttprequest calls on a page
Posted
by blacktooth
on Stack Overflow
See other posts from Stack Overflow
or by blacktooth
Published on 2010-05-12T12:17:55Z
Indexed on
2010/05/12
12:34 UTC
Read the original article
Hit count: 215
I have two divisions, <div id=statuslist></div><div id=customerlist></div>
The function sendReq()
creates a xmlhttprequest and fetches the data into the division.
sendReq('statuslist','./include/util.php?do=getstatuslist','NULL');
sendReq('customerlist','emphome.php?do=getcustomerlist','NULL');
I have a problem,
The data fetched into the 'customerlist' gets copied onto 'statuslist'
If i change the order of function calls,
sendReq('customerlist','emphome.php?do=getcustomerlist','NULL');
sendReq('statuslist','./include/util.php?do=getstatuslist','NULL');
Now the data of 'statuslist' gets into 'customerlist'..
Whats the problem with the code?
© Stack Overflow or respective owner