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!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, 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.');
}
}
);