Thursday, 25 August 2016

How to wait the ajax submission ,upto response not prepared.

The below is the code snipset.

$.ajax({
        url: $(this).attr('href'),
        type: 'GET',
        async: false,
        cache: false,
        timeout: 30000,

From above "async: false" is required to wait the response.

No comments:

Post a Comment