I'm having a problem with multiple Ajax.Updater instances. I have five
small chunks of data being loaded into my homepage, and they seem to
be firing off one at a time. So the pieces load up in the order they
were called. Maybe I'm being a noob, but shouldn't all those requests
just fire away and then place the content as it gets received?
I was doing multiple versions, but I finally ended up simplifying to
something like:
var call1 = new Ajax.Updater(
'id1',
'/foo1.html',
{
method: 'post'
});
var call2 = new Ajax.Updater(
'id2',
'/foo2.html',
{
method: 'post'
});
etc...
Using firebug, I can see all the requests seem to get made
simultaneously, but the chunks are received in order. Since each one
takes about 3 seconds to process, it makes for a long wait. To make
things worse, in IE a link won't work until all the updaters are
complete. So you click the link, wait for everything to load (15
seconds) and only then does the page redirect. Is this something that
has more to do with limitations of the HTTP protocol than the
XMLHttpRequest object?
Thanks!
Jason
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs