Total Hits - 34922
Total Votes - 203 votes
Vote Up - 72 votes
Vote Down - 131 votes
Domain - www.tutorialsavvy.com
Category - Java Script/Java Script Misc
Submitted By - Sandeep Kumar Patel
Submitted on - 2013-12-31 13:29:52
Asynchronous method generally has some callback like success, error or complete.There are many situation while coding in java script where we need to call a block of code after an asynchronous method finished execution.This is where we see the problem as:-
--Browser does not wait for asynchronous method to complete and start executing the next line.
--If We will write the block of code after success method then it create a messy code base to manage.
Please use the following link to visit the site. There is a possibility that this content has been removed from the given URL or may be this site has been shut down completely.http://www.tutorialsavvy.com/2013/11/jquery-promise-object-for-asynchronous.html