On Jan 16, 9:12 pm, cb <christophe.ba...@gmail.com> wrote:
> Thanks for your informative reply.
> In my case I think I should have only at most two concurrent request
> at any time. But what I really need is to be able to abort a pending
> notify request. If I can, then I will have at mot one request at a
> time.
> Basically I will have a pending notify request until the server
> replies to it. But if I need to change a state from the client, I need
> to abort the notify request, change the state and then send a new
> notify request.
> Is it possible to abort a pending request from thr prototype
> framework ?
>
Again, not in Prototype. But XMLHttpRequest has an abort method.
IIRC Ajax.Request doesn't have a documented way of getting at the
XMLHttpRequest object (except in its callbacks, where it is passed as
an argument). But you can get it from its .transport property I
believe.

Colin

--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to