[HTML_AJAX-devel] AJAX requests which fail silently ?
Joshua Eichorn
josh at bluga.net
Fri Nov 30 14:06:52 MST 2007
Alain BAUDHUIN wrote:
> Hi,
>
> I'm an enthusiast user of HTML_AJAX for some time already. I'm mainly
> exposing PHP classes using stubs, and I've provided my version of
> HTML_AJAX.onError= function(e) { (...) }which works just fine.
>
> But now I'm facing the fact that some some of the exposed functions
> should not perform any error reporting to the user in case of failure,
> (eg. server not available),. At some places, asynchronous calls to
> no-error-reporting-methods and standard-error-reporting-methods can be
> mixed, so I cannot possibly remove and restore the error handler. Is
> there any way to inhibit error reporting on some of the exposed
> methods and not others ?
>
> My only other idea would be to instanciate a second HTML_AJAX object,
> with an empty onError function, but is this even possible since
> HTML_AJAX is a global ?
>
> Thanks for any hint,
>
> Alain.
>
> _____________________
> Alain BAUDHUIN
> alain.baudhuin at swing.be <mailto:alain.baudhuin at swing.be>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Html_ajax-devel mailing list
> Html_ajax-devel at lists.bluga.net
> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
>
You should be able to set error handlers at the call level, with the
global handler used if thats not set.
I can give you an example if I know what your doing (proxies,
HTML_AJAX.post, etc etc)
-josh
More information about the Html_ajax-devel
mailing list