views:

677

answers:

2

I got a bug report that I can't duplicate, but ajax-call timeout is the current best guess.

So I'm trying to find out the default value for timeout of a jQuery $.ajax() call. Anybody have an idea? Couldn't find it in jQuery documentation.

Thanks in advance, Marcus

A: 

I think you can use the firebug addon of firefox to see how long the request took.

Sarfraz
The problem is I can't replicate the bug. On my test-computers the timeout never happens, and this is why I'm trying to figure out the defaults.
Marcus
+2  A: 

There doesn't seem to be a standardized default value. I have the feeling the default is 0, and the timeout event left totally dependent on browser and network settings.

For IE, there is a timeout property for XMLHTTPRequests here. It defaults to null, and it says the network stack is likely to be the first to time out (which will not generate an ontimeout event by the way).

Pekka
So basically jQuery doesn't use any default value for it. The problem was reported on Safari.I guess I'll just try to force some longish timeout value and hope for the best... Thanks!
Marcus