I cannot find how can I attach an timeout option to the Ajax prototype call or what is the default value for it.
+1
A:
There doesn't seem to be specific timeout functionality in Prototype yet. It seems to be definitely in the works, see Prototype Ticket #220. I'm guessing it is using whatever browser-wide global timeout there is for XMLHTTPRequests.
Maybe this helps: AJAX Timeouts with Prototype
It's a few years old already, but may still do the trick.
JQuery seems to have this built in.
Pekka
2010-02-08 11:03:35
I know about jQuery, but I am using Magento and is prototype based...
Elzo Valugi
2010-02-08 11:04:58
I added a link to a Prototype ticket. One person has a fork there that seems to implement timeouts.
Pekka
2010-02-08 11:06:04
thanks a bunch.
Elzo Valugi
2010-02-08 11:25:00
the global value is 0, meaning it will go on until will reach network stack's time-out value. src: http://msdn.microsoft.com/en-us/library/cc304105(VS.85).aspx
Elzo Valugi
2010-02-08 11:34:40
Good to know, thanks!
Pekka
2010-02-08 11:35:44