running several instances of an ajax function concurrently?

eliyahu_s

New member
I have a function -->
function edituserquestion(questionid, action) {
xmlHttp=GetXmlHttpObject();if (xmlHttp==null){alert ("Browser does not support HTTP Request");return;}
...}
which calls -->
function stateChangededituserquestion() {...}
How can I make it that if the user clicks one a button with questionid 5, and before stateChangededituserquestion returns from the server the user clicks on another button with a different questionid, it'll work fine (i.e. the server will process one after the other and my script will deal with them in order?)
 
Back
Top