Hello, What happens if an Ajax.Request is not answered? I understand that browsers have a limited number of simultaneous connections to an hostname; in the case of frequent http Ajax.Request, the client could jam and become unresponsive, holding subsequent requests (for instance in the case of a polling). How can I cancel an Ajax.Request that if is not answered within x seconds so that the way is free for other Ajax.Request? Thank you --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 17, 2008 12:07 PM, JCR <jcxxr-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> What happens if an Ajax.Request is not answered?If the server is no longer online (not responding), then I believe the request will result in an exception. Not a 500, which is catchable with the onFailure handler, but an exception. I have tried catching these exceptions with either the onFailure and the onException handlers, both of which did not work. Somebody else will have to answer your second question (how to cancel an Ajax request after x seconds), as I am unsure of that one. -justin --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hello, It looks like that what I need is available in JQuery; they have a timeout parameter that can be added to their ajax request. There is really nothing like that in prototypejs? I cannot seem to find anything in the docs. I don''t really want to rewrite my app for JQuery thanks! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, It''s a planned feature for 1.6.1. Best, Tobie On Jan 18, 1:11 am, JCR <jc...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Hello, > It looks like that what I need is available in JQuery; they have a > timeout parameter that can be added to their ajax request. > > There is really nothing like that in prototypejs? I cannot seem to > find anything in the docs. I don''t really want to rewrite my app for > JQuery > thanks!--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 17, 7:17 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > It''s a planned feature for 1.6.1.Excellent! Any idea when this version will be released? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
As soon as it''s ready ;) On Jan 18, 3:35 am, JCR <jc...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> On Jan 17, 7:17 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > It''s a planned feature for 1.6.1. > > Excellent! Any idea when this version will be released?--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 17, 9:46 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> As soon as it''s ready ;) >Is there a function abort(), or equivalent that could be called on the returned value of new Ajax.Request? Maybe that''s what 1.6.1 brings! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
> Is there a function abort(), or equivalent that could be called on the > returned value of new Ajax.Request? Maybe that''s what 1.6.1 brings!Right on! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On 17 Jan., 19:07, JCR <jc...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> How can I cancel an Ajax.Requestthat if is not answered within x > seconds so that the way is free for other Ajax.Request?There was an article at http://codejanitor.com/wp/2006/03/23/ajax-timeouts-with-prototype/ on how to handle server timeouts. Its from 2006 though and I haven''t tested it. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---