On 2/21/06, Grzesiek Slusarek <[EMAIL PROTECTED]> wrote: > Hi all. I 'm using Ajax request on my site and i need to show some message > wneh AJAX call is running, (sometimes it happen so slow). I find that object > AJAX.RESPOND is very usefull here, but sometimes when i need to do AJAX CALL > my ajax call is redirect and i want to when it happen, is there way to find > status of ajax call? i don't know where I can find this property in > AJAX.Request, Ajax.Responder or maybe it doesn't exist? I know that using > clear xmlhttprequest there is a property called > request.status.
The callback functions (onComplete, onSuccess, onFailure, onXXX, etc) all pass the transport (XMLHttpRequest) into the function as the first parameter. You can do transport.status to get the value you want. Todd _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs