Adam
Member since Apr 17, 2012
- Profile: /members/9843-adam.htm
- Comments: 2
Recent Blog Comments By Adam
-
Using Deferred Objects In jQuery 1.5 To Normalize API Responses
Posted on Apr 18, 2012 at 7:42 PM
@Adam, I believe I have the answer thanks to Eric Hynd's "chaining hotness". Create your own deferred in the API wrapper and you can reject/resolve in your validation or error handling as needed. I didn't realize that the deferred object works that way. At first it seems like it always ... read more »
-
Using Deferred Objects In jQuery 1.5 To Normalize API Responses
Posted on Apr 17, 2012 at 12:43 AM
Ben, I can't thank you enough for your informative posts on jQuery's deferred object. It's really wonderful and has saved me from callback hell! Question for you: I would like to do something analogous to the following in your example, but am not sure how best to go about it... Check a parameter f... read more »