This is great John and will be great for the community and widget developers! I hope this will be put in SVN soon.
-- Brandon Aaron On 10/31/06, John Resig <[EMAIL PROTECTED]> wrote: > Hi Everyone - > > I just finished reading over the massive thread that discusses > embedding metadata into elements for later extraction. Well, I just > finished a plugin to handle all three metadata-extraction methods. > > You can see a demo here: (Uses Firebug debug statements!) > http://john.jquery.com/plugins/meta/ > > It's capable of extracting metadata from classes, random attributes, > and child elements. > > For example, you can do: > <li data="{some:'random', json: 'data'}">...</li> > OR > <li class="someclass {some: 'data'} anotherclass">...</li> > OR > <li><script type="sometype">{some:"json",data:true}</script> ...</li> > > The default is the first method, but you can always change it but > twiddling the options. This means that there is at least one option > here to appease you. > > There's also a bunch of options (like loading data into a single > property and the ability to ignore braces {}). Let me know what you > think of this - I know that I'll probably be using it very soon. > > --John > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
