May 19, 2011

A Robust Way To Handle Asynchronous Requests Using jQuery 1.5+

jQuery 1.5 includes a number of improvements in Ajax/asynchronous events and introduces new Deferred callback management system. It provides flexible ways to provide multiple callbacks. Let us take an example to understand deferred punch. The objective of example is to call two Asynchronous methods (asyncMethod1,asyncMethod2) and other method(finalMethod) when both asynchronous methods are executed.