[Proto-Scripty] Re: async ajax requests and timeouts delimma

2009-04-17 Thread Mona Remlawi
oh _the_ Matt Foster ! i'm very much aware of your blog and i'll take this opportunity to thank you for sharing what you share -- it's been an inspiration finally I ended doing something similar to what you mentioned, i just named my constant: TOLERANCE_RATIO where 0 : no tolerance : timeout will

[Proto-Scripty] Re: async ajax requests and timeouts delimma

2009-04-16 Thread Matt Foster
Yeah I'd say thats a pretty good approach, if you've got 8 active requests then the timeout duration of the 9th should be affected by the number of currently active predecessors. I'd do something in the onCreate method to just set the instance's timeout universally instead of trying to micromanag

[Proto-Scripty] Re: async ajax requests and timeouts delimma

2009-04-15 Thread Maarten
Hi mona, I don't mean this in a negative way, but what exactly are you doing? Just out of curiousity. Other than that, have you tried passing the Ajax requests into different objects? Maarten --~--~-~--~~~---~--~~ You received this message because you are subscri

[Proto-Scripty] Re: async ajax requests and timeouts delimma

2009-04-15 Thread Mona Remlawi
... ok i have this working, but still, it's not optimal to just increment active timeouts, or is it? any thoughts here are much appreciated -- // cumulative timeout in msecs Ajax.activeRequestTimeout = 0; Ajax.Responders.register({ onCreate:function(request) { Ajax.activeReques