If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Tuesday, November 9, 2010

YUI 3 transaction management simplified

After using YUI3 for a while I was quite satisfied with most of the API but the IO module was still quite cumbersome to use. I came up with following user-friendly function.







Some examples of how i use them in my project:

An example of executing a synchronous transaction


An example of using a SimpleContainerTransaction


An example of a ContainerTransaction where I override the onComplete method

No comments:

Post a Comment