On 01 Aug 2007, at 14:24, Yeti wrote:
> I am using Prototype quite extensively on a site to do various things.
> Parts of the page get loaded via Ajax.Updater while other actions are
> done with Ajax.Request. Now, it seems that I can only have one call
> run "parallel" and all other calls have to wait for the other(s)
to
> finish.
> This is extremely obvious with a slow loading part of the site that
> takes about 5 seconds to load. If I open the "settings" tab in a
> Lightbox (which uses Prototype and Ajax.Updater, too), you only see
> the "Loading..." text until the other call in the background is
done.
> Can I have those calls run parallel? 2 or 3 would suffice, I suppose.
> If not, can I somehow abort requests if there is a "more
important"
> request to be made and then re-do it after the important task is done?
> Or do I have to code that myself?
This doesn''t have anything to do with AJAX in general, it''s a
browser
limitation. You can change it (for some browsers at least) in your
own browser, but that won''t stop the concurrency problems if your
site is a public one:
http://www.oreillynet.com/xml/blog/2006/10/
what_i_didnt_know_about_xhr.html
Best regards
Peter De Berdt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---