Jquery Promise Object For Asynchronous Method Handling
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 20263
Total Votes: 231 votes
Category: Java Script/Java Script Misc
Submitted on: 2013-12-31 13:29:52
Submitted By: Sandeep Kumar Patel
Description: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. More detail...