jQuery, DeferredObjects, and Promises



Standard Approach: Original


Standard Approach: Highlighting by Modifying insertText


Standard Approach: Highlighting by Modifying $.ajax Call


Standard Approach: Showing Temporary Messages




Deferred Approach: Original


Deferred Approach: Highlighting by Adding done Handler


Deferred Approach: Showing Temporary Messages


Deferred Approach: Using $.when



Creating Your Own Deferred
















From the coreservlets.com JavaScript and jQuery tutorial