I test this code: jQuery.ajaxSetup( error: function(request, settings,ob){ alert( "error: " );} }) ;
Then error message appear always that I do ajax athought ajax call is success. Am I doing something wrong or is a bug? On 2 ago, 03:13, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > the function is ajaxError() and not error() > > -GTG > > On 8/1/07, oscar esp <[EMAIL PROTECTED]> wrote: > > > > > > > I need to have a global behaviour for ajax call. I have next code: > > > jQuery().ajaxSuccess(function(request, settings){updateCounter ();}); > > > jQuery().error(function(request, settings){alert('APLICATION ERROR\n > > '+settings.url);}); > > > jQuery.ajaxTimeout(120000); > > > - Ajax Success works fine. > > > - I don't know how provoke and error to execute error function.... Any > > suggestion? > > > - TimeOut: When time out event is fired, error function should be > > executed or there is any way to specify which function should be > > fired? > > > Thanks.- Ocultar texto de la cita - > > - Mostrar texto de la cita -