I have two divisions, <div id=statuslist></div><div id=customerlist></div>
The function sendReq()creates xmlhttprequest and retrieves the data in the division.
sendReq('statuslist','./include/util.php?do=getstatuslist','NULL');
sendReq('customerlist','emphome.php?do=getcustomerlist','NULL');
I have a problem,
Data received in 'customerlist'is copied to'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 'statuslist'falls into ' customerlist'..
What is the problem with the code?
source
share