RE: [Rails-spinoffs] Ajax Timeouts

2006-07-22 Thread Maninder, Singh
>>Can I trouble you to add a comment to the bug so that others are aware >>of the problem? Someone might post an alternative patch then as well. >>http://dev.rubyonrails.org/ticket/3730 Done. Thanks, Mandy. ___ Rails-spinoffs mailing list Rails-spinoff

Re: [Rails-spinoffs] Ajax Timeouts

2006-07-22 Thread Todd Ross
Maninder, Singh wrote: > Your solution doesn't work in Safari. > > As per the Gentleman who helped me test this, after aborting > the request, onComplete is not getting fired in Safari. I'm sorry to hear that but thanks for the report! I don't have access to a machine with Safari, I'm afraid. C

RE: [Rails-spinoffs] Ajax Timeouts

2006-07-22 Thread Maninder, Singh
Todd, Your solution doesn't work in Safari. As per the Gentleman who helped me test this, after aborting the request, onComplete is not getting fired in Safari. We have put a hack round it by explicitly calling it after aborting. But, just wanted you to be in the loop. Thanks for a great patc

Re: [Rails-spinoffs] Ajax Timeouts

2006-07-19 Thread Ryan Gahl
Going back to the Parenizor debate we had here a few weeks ago (I tried to do a search for that thread on http://www.ruby-forum.com/forum/10 but the search function is currently broken, meh)... One could cache the old (core) proto class in question into a "base" property of the new class before ex

Re: [Rails-spinoffs] Ajax Timeouts

2006-07-19 Thread Todd Ross
Maninder, Singh wrote: > Your solution works perfect for me (from the first round of testing that I > have done). I'm glad to hear that. > There is just one small issue - > > Currently, I have made changes to my prototype file. > But, this means that tomorrow if new version of prototype comes >

Re: [Rails-spinoffs] Ajax Timeouts

2006-07-19 Thread Ryan Gahl
Mandy...Can the changed lines/classes you're talking about be factored out into a separate "prototype-overrides.js" file which you can load into the docuement after prototype.js is loaded, thus overwriting (or Object.extending) the existing classes with your added functionality, but still allowing

RE: [Rails-spinoffs] Ajax Timeouts

2006-07-19 Thread Maninder, Singh
Todd, Your solution works perfect for me (from the first round of testing that I have done). There is just one small issue - Currently, I have made changes to my prototype file. But, this means that tomorrow if new version of prototype comes out, it's going to be a pain maintaining it. What d

RE: [Rails-spinoffs] Ajax Timeouts

2006-07-19 Thread Maninder, Singh
Lovely! Taking a look now. Thanks Todd. -Mandy. ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] Ajax Timeouts

2006-07-19 Thread Todd Ross
Maninder, Singh wrote: > Hello Everyone, > > Is there any prototype patch available that would enable the following - > > 1) Passing a 'timeout' parameter to the ajax.request so that we can timeout > every request after some seconds. > Every request could have a different timeout associated. >

[Rails-spinoffs] Ajax Timeouts

2006-07-19 Thread Maninder, Singh
Hello Everyone, Is there any prototype patch available that would enable the following - 1) Passing a 'timeout' parameter to the ajax.request so that we can timeout every request after some seconds. Every request could have a different timeout associated. 2) Addition of onTimeout method where w