[jQuery] Ajax Setup Questions
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.