Hi,
is there any way to get a notification when nuAjax fails due to an error (for example a connection error)?
Thanks
Nektarios
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
nuAjax error
-
- Posts: 4
- Joined: Mon Jun 15, 2009 10:01 am
Re: nuAjax error
nekpap,
If you are using the latest version of nuBuilder, you can pass a fail function to nuAjax();
Example:
If you are using the latest version of nuBuilder, you can pass a fail function to nuAjax();
Example:
Code: Select all
nuAjax(
'PROCEDURE_CODE',
{
async:true,
data:{
data_to_send_to_procedure: 'test'
},
done: function(){
alert('Done.');
},
fail: function(){
alert('Failed, connection error.');
},
always: function(){
alert('Finished ajax call.');
}
}
);