I\'m recently fooling around with some ajax polling techniques. However, it seems like I can\'t overwrite the onreadystatechange handler from a XMLHttpReq
onreadystatechange
XMLHttpReq
If you want a large level of customization, you can just get the XMLHttpRequest object and control it yourself.
var x=new $.ajaxSettings.xhr(); x.onreadystatechange=function(){ ... } ...