There's a on404 event you could catch:

new Ajax.Request('non_existant.file', {
        onSuccess: function(){alert("yay");},
        on404: function(){alert("404")}
})


Ciao
Martin

www.pluxemburg.com


On 14 feb 2006, at 17.58, Douglas Livingstone wrote:

2006/2/14, Ryan Gahl <[EMAIL PROTECTED]>:
I believe onFailure is only a callback method for errors that happen on the server (you would have to have caught some kind of error condition
in the server side code

I'm looking to catch a 404 error here.

Thanks,
Douglas
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to