Hey I have a situation where the user might make a number of requests
before individual responses come in. I'd like to make it so that if
the user makes a second request before the first one comes it, it
cancels or ignores the first one. I thought of something like this:
currentRequest = new Ajax.Request(
onSuccess: function(transport) {
if (transport.request == currentRequest)
{
alert(this response matches the last request)
}
}
}
Is there a better way to do this? Can I compare by urls?
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---