I'm getting to much time in get response of ajax call. Now i want to stop further process of ajax call if ajax taking time more then 30 sec time. Do any one know how can I implement it?
Thank you.
I'm getting to much time in get response of ajax call. Now i want to stop further process of ajax call if ajax taking time more then 30 sec time. Do any one know how can I implement it?
Thank you.
 
    
    You can take a look at the documentation for ajax: http://api.jquery.com/jQuery.ajax/.
Or this similar question: Set timeout for ajax (jQuery) with the answers provided.
jQuery.ajax({
    url: 'ajaxhandler.php',
    success: function (result) {                               
       returned_value=result;
    },
    timeout: 10000,
    async: false
});
 
    
    