Asynchronous Programming in JavaScript with "Promises" - 2 views
-
Andrew Schonhoffer on 20 Sep 11This is an easy to understand article about the Promise pattern for Javascript. It is a way to have a 'continue with this function when this previous one succeeds' that doesn't involve nesting functions. The jqXHR objects returned by $.ajax() as of jQuery 1.5 implement the Promise interface, giving them all the properties, methods, and behavior of a Promise.