A fix for older browsers #171

Closed
prsephton opened this Issue Feb 27, 2012 · 0 comments

2 participants

@prsephton

In short: firefox 3.0.6 + jquery 1.7.1 don't understand getDoc(io).readyState. Almost certainly browser related.

So, checkState() always ends up in a server abort (throws type error). The following fixes the problem:

// look for server aborts
function checkState() {
try {
var state = getDoc(io).readyState;
if (state) {
log('state = ' + state);
if (state.toLowerCase() == 'uninitialized')
setTimeout(checkState,50);

}
}
catch(e) {
...
}
}

Great plugin. Thanks!

@malsup malsup added a commit that referenced this issue Mar 6, 2012
@malsup v2.98. fix for issue #171 c05a15c
@malsup malsup closed this Mar 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment