Re: [Rails-spinoffs] How to sort execution of multiple ajax-calls

2006-03-07 Thread Jerod Venema
If you *really* need to make sure they execute in order, you'll have to implement some sort of queueing of your own. Shouldn't be hard. I'd do something like this:1) Create a global object to manage your queue. QManager lets say. Give it an array, called queue, and a function called "add" 2) Add a

Re: [Rails-spinoffs] How to sort execution of multiple ajax-calls

2006-03-07 Thread Dave Teare
To answer your first question, the the body's ONLOAD command is executed once the page has completed loading. Having script in your HTML gets executed at different times depending on the browser (at least that's my experience). As for the other questions, why do you need 2-3 ajax calls to e

[Rails-spinoffs] How to sort execution of multiple ajax-calls

2006-03-07 Thread Jan Deppisch
Hi, currently I execute 2-3 AJAX-Calls (located at the end of html-body) on loading the page. I run into problems now because they are executed parallel of course :) How can I garuantee that the Calls are executed when the page has loaded completely ? And, more interesing, how can I make one AJA