Conversation
Notices
-
Does anyone have any experience with firefox just completely aborting the processing of an AJAX request (with jquery?)
Friday, 14-Nov-08 22:46:57 UTC from identispy-
@dustin nope... generally that only happens on timeout...
-
@briantroy It's happening fairly consistently for me on the first load of this app. There's no timeout I see doing anything.
-
@briantroy That is, it'll fail on the first request within 2s consistently, but work fine after a 30m long poll (took a nap).
-
@dustin Failed requests are quite common. Though usually random, not always on the first one.
-
@dustin are you handlingthe error: case? if so what are you getting? Is it even firing?
-
@metajack Hmm... I'd expect a callback. I'm using ajaxStop because there should *always* be one in flight. Just stops.
-
@dustin Lots of AJAX libs dont' recover from non-HTTP errors.
-
@dustin Also, it's possible for the AJAX request to get stuck in a proxy or somewhere until the server timeout value is reached.
-
@metajack Kind of disappointing. I've got no sign of failure anywhere. -- this is just localhost
-
@dustin if there is always one active don't use ajaxStop... use ajaxComplete ... for long polling I always use .ajax with internal cllbacks
-
@briantroy I've tried both. They both work the same way unless the GET gets swallowed.
-