On 2/6/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> jQuery's success event handler doesn't map to readystate == 3, but if

I saw that but thought that might ask once

> that is still required we can work with native JavaScript - let's
> utilise the fact that jQuery's $.ajax function returns the
> XmlHttpRequest object:
>
> var xhr = $.ajax(...);
> xhr._onreadystatechange = xhr.onreadystatechange;
> xhr.onreadystatechange = function() {
>      xhr._onreadystatechange();
>      if (xhr.readyState == 3) alert('Interactive');
> };

Thanks a lot - this was the answer I was looking for :)

Cheers
Tarique

-- 
=============================================================
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog: http://cheesecake-photoblog.org
=============================================================

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to