Published on 2007-03-27 12:06:10

YUI blog have a very interesting post on Dustin Diaz and his JavaScript Library DED|Chain. A new JavaScript library which sits on top of YUI and allows you to use a jQuery like syntax.

With D|C, I wanted to take the jQuery style and philosophy a step further, but build on top of Yahoo! UI. There are of subtle differences in some syntax choices; for instance, every callback in D|C is executed in the scope of the DED bolt (yes, I’m calling them DED bolts). A DED bolt is the outer-most selector from which each chain is derived.
diaz-dedchain.gif

For example you can write in jQuery :

In DED|Chain, it would look like this:

DED|Chain have a customizable API and could be easily extended with plugins. Pretty neat to get YUI with jQuery like syntax, what do you think ?


Related Entries

Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved