users@woodstock.java.net

Re: Ajax Errors

From: Jason Suplizio <suplizio_at_gmail.com>
Date: Tue, 8 Apr 2008 15:20:11 -0700

Thanks, but to clarify, when I say capture, I didn't mean view them in
Firebug, I mean that I need to deal with them in my javascript. Here's a
scenario to help clarify:

I have a user entering text into a textField component and when they click
on the submit button i call textField.submit() - which fires off and
asynchronous request. However, there is a failure either sending or
receiving the response...therefore I need to show an alert to tell the user
that there is a communication problem with the server.

So, how can I capture an async request/response failure? Isn't 4.1.1 built
on prototype? Would it be possible get prototype's
Ajax.Base.responseIsFailure property for a specific component?

Any advice would be appreciated?
Jas


On Tue, Apr 8, 2008 at 1:47 PM, Felipe Jaekel <fkjaekel_at_gmail.com> wrote:

> Try Firefox's Firebug extension
>
> 2008/4/8, Jason Suplizio <suplizio_at_gmail.com>:
> >
> > I need a capture when a component's asynchronous request is failing. For
> > example, if I call component. refresh() or component.submit() and the
> > communication/request to the server is failing, how do I detect this?
> >
> > Please help, I need to find a solution asap.
> >
> > Jason
> >
>
>