[jQuery] Re: Queuing Async Ajax requests in jQuery

2007-07-12 Thread Jörn Zaefferer
Mike Hostetler wrote: Great idea. I'll continue the topic there. I've spoken with John Regarding this and I will be implementing it as a Plugin. I've updated the page with an API draft and a comment on testing. I'm looking forward to the plugin, the draft hopefully contains all requiremen

[jQuery] Re: Queuing Async Ajax requests in jQuery

2007-07-12 Thread Mike Hostetler
Great idea. I'll continue the topic there. I've spoken with John Regarding this and I will be implementing it as a Plugin. On Jul 11, 12:37 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Mike Hostetler wrote: > > I wanted to start some discussion about whether this might be > > addressed withi

[jQuery] Re: Queuing Async Ajax requests in jQuery

2007-07-11 Thread Jörn Zaefferer
Mike Hostetler wrote: I wanted to start some discussion about whether this might be addressed within jQuery, how to address it, should it be a plugin, etc. I'd be happy to write one. This should be a plugin. Your post is a good start and the replies are interesting, too. I can see that this co

[jQuery] Re: Queuing Async Ajax requests in jQuery

2007-07-11 Thread Robert James
I've been bothered about this also. The simplest approach is to do what TCP/IP does - number each response, and ignore all but the latest response. To elaborate: since you can have multiple, parallel, independent streams of Ajax going on, you need to number those also - call them ports. For eac

[jQuery] Re: Queuing Async Ajax requests in jQuery

2007-07-11 Thread Sam Collett
You may also want to cancel Ajax requests (as is the case with autocomplete), but I don't know if you can do that with jQuery. Maybe something like: $.ajax({ type: "GET", url: "autocomplete.php", queue: "autocomplete", cancelExisting: true }) Which would cancel an existing request in

[jQuery] Re: Queuing Async Ajax requests in jQuery

2007-07-11 Thread Mike Hostetler
Here's another great example with a solution. http://www.cmarshall.net/MySoftware/ajax/index.html His code is large and in charge, but looks like he's done a good job. I'm positive we could optimize this with jQuery. Mike Mike Hostetler wrote: > Hi All- > > I recently ran into a situation simi