Jquery: promise function

I am using promise function and jsonp, the issue I am facing is that before I receive response of the request, my next ajax function is called, so sometimes blank data is sent. How can I call the next function after getting the response, please help.

Source: jquery

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.