Just curious, do you think the code snippet below is capable of triggering a second ajax function once the first one has completed successfully?
if(xmlHttp) // xmlHttp represents an XMLHttpRequest object
{
xmlHttp.onreadystatechange = function()
{
if(xmlHttp.readyState == 4 && xmlHttp.status == 200)
{
// Is it possible to initiate a second call at this point because the first one is done?
}
}
Am I understanding this correctly? Or am I missing something in what I'm trying to accomplish?