quick links

How i decide response is success or error in ajax Without success and error parameter?

Check the server response using status code.

$.ajax({
statusCode: {
400: function() {
alert('400 status code! user error');
},
500: function() {
alert('500 status code! server error');
}
200: function() {
alert('200 status code! Success');
}
}
});

 

About Us

Joomla Web Solution

We love working with PHP, HTML5, CSS3, jQuery and the most-loved content management framework in the world, Joomla!

LIKE US ON FACEBOOK