Please ignore the previous post.
On May 8, 3:54 pm, Ollie <[EMAIL PROTECTED]> wrote:
> I ommited a few things such as recursion control and url to update. I
> apologise for that.
> These things are important but they are not related to the issue
> described.
>
> New code:
>
> update(['a','b','c'], 0);
>
> function update(values, index){
> if(values.length >= index) return;
> Ajax.Updater(values[index], SOME_URL, {onComplete:update(values,
> index+1)});
>
> }
>
> My previous questions still stand:
>
> Even with asynchrony this code should request a, b, c, right?
> How can I do this series of requests and updates using the order on
> the list?
>
> On May 8, 2:04 pm, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
>
> > David Dashifen Kees a écrit :
>
> > > Well, unless your pseudo-code below is different from your actual code,
> > > you have an error. The Ajax.Updater takes first an element on the
> > > screen, then a page on the server to which it connects, and finally an
>
> > D'oh! Hadn't even noticed that...
>
> > Indeed, there's a need forhttp://prototypejs.org/api/ajax/updater
>
> > --
> > Christophe Porteneuve a.k.a. TDD
> > "[They] did not know it was impossible, so they did it." --Mark Twain
> > Email: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---