You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Paolo Di Tommaso <pa...@gmail.com> on 2006/12/22 12:09:38 UTC

Ajax failure message on connection error does not work in Mozilla Firefox

I would like to display an alert message when the user is performing an ajax
operation but the connection is down.

The wicketGlobalFailureHandler should work for this, and it does on IE but
it does not on Firefox (1.5.0.9).

Debugging JavaScript with FireBug I've found that there is a JavaScript
error that will prevent to invoke my custom wicketGlobalFailureHandler.

The error message is:

[Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
http://localhost:9080/coin-gps/servlet/gps/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js::
anonymous :: line 587" data: no]




Thanks

Paolo

Re: Ajax failure message on connection error does not work in Mozilla Firefox

Posted by Mark Derricutt <ma...@talios.com>.
Firebug beta 05 (i think) and onwards added a fix for a known problem
triggering XmlHttpRequest problems so you could try the latest beta as well.

On 12/23/06, Igor Vaynberg <ig...@gmail.com> wrote:
>
> try it with firebug uninstalled, it has caused me to have weird errors in
> wicket-ajax.js before
>

Re: Ajax failure message on connection error does not work in Mozilla Firefox

Posted by Igor Vaynberg <ig...@gmail.com>.
try it with firebug uninstalled, it has caused me to have weird errors in
wicket-ajax.js before

-igor


On 12/22/06, Paolo Di Tommaso <pa...@gmail.com> wrote:
>
> I would like to display an alert message when the user is performing an
> ajax
> operation but the connection is down.
>
> The wicketGlobalFailureHandler should work for this, and it does on IE but
> it does not on Firefox (1.5.0.9).
>
> Debugging JavaScript with FireBug I've found that there is a JavaScript
> error that will prevent to invoke my custom wicketGlobalFailureHandler.
>
> The error message is:
>
> [Exception... "Component returned failure code: 0x80040111
> (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111
> (NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
>
> http://localhost:9080/coin-gps/servlet/gps/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js
> ::
> anonymous :: line 587" data: no]
>
>
>
>
> Thanks
>
> Paolo
>
>