>And next, because an array is much more flexible than variables. you
I am sorry David, but I don't agree with you on this :o)
An object variable is ways more flexible than an array. Especially if
you add some methods to its prototype to fit your needs.
And it is probably overkill in this case, where an incremented int
would do it unless you actually need the result objects of every
previous requests (which is not the same thing than "need to be
executed after every previous requests" which is the need expressed by
maalek).
Alex: That's weird, but I was thinking the xhr object was stored in
the closure of the Ajax.Request object, and garbage collected after
the last callback was called (unless you store a reference to this
object in another variable of course).
It seems I am obviously wrong here.... I guess I'll have to have a
look in the source again :o)
>var request=new Ajax.Periodical...({});
>
>request=null;
If you nullify the Periodical thingy, will it continue to be called?
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.