Friday, January 15, 2010

[jQuery] Drive jQuery plugin: a new kind of DOM builder

Hi all,


I have recently released a beta version of my new plugin, the Drive
jQuery plugin.

This plugin is a new kind of DOM builder: it allows you to construct
the DOM using basic jQuery selectors.
It searches for elements, and if none is found, it attempts to create
them.


For example, assuming a default element tag = 'div':

$('#element1 > #element2.class1 > span#element3.class2 > img').drive
( );

is the equivalent of:

$('#element1').append(
$('<div id="element2" />')
.addClass('class1')
.append(
$('<span id="element3" />')
.addClass('class2')
.append($('<img />'))
)
);


I need people to try and test my plugin :-)


If you are interested, here is the repository on Github:
http://github.com/lfortin/drive-jquery-plugin

Downloads page:
http://github.com/lfortin/drive-jquery-plugin/downloads

Documentation:
http://wiki.github.com/lfortin/drive-jquery-plugin/


If you encounter any bug or weird behavior, or if you have any
comment, please reply to this post!

Thank you for your help in advance,


-Laurent

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate