[jQuery] Re: Store meta data in jQuery?

2007-11-05 Thread boermans
Wizzud that is _exactly_ what I was looking for! Thank-you! I see this being particularly useful for storing references to other DOM elements. For example to store a reference on each paragraph to it's previous sibling: !-- HTML -- pItem 1/p pItem 2/p !-- save ref to item 1 --

[jQuery] Re: Store meta data in jQuery?

2007-11-04 Thread Mike Alsup
Is there a relatively simple plugin that takes advantage of jQuerys expando management that anyone can recommend as an example? The most promising information I have discovered is in the release notes of jQuery 1.2 where John mentions jQuery.data() : http://

[jQuery] Re: Store meta data in jQuery?

2007-11-04 Thread Oliver Boermans
Thanks Mike, can the metadata plugin be used to store variables determined on load for later use? So when the variables are subsequently required the code to retrieve them is simple and quick. Cheers Ollie On 05/11/2007, Mike Alsup [EMAIL PROTECTED] wrote: Is there a relatively simple plugin

[jQuery] Re: Store meta data in jQuery?

2007-11-04 Thread Wizzud
Using the example data that started the post... // create a DIV with text, and append to #cardholder... var businessCard = jQuery('div class=bcardBusiness Card/ div').appendTo('#cardholder').get(0); // store data against the DIV element created above... jQuery.data( businessCard //element

[jQuery] Re: Store meta data in jQuery?

2007-11-03 Thread boermans
Is there a relatively simple plugin that takes advantage of jQuerys expando management that anyone can recommend as an example? The most promising information I have discovered is in the release notes of jQuery 1.2 where John mentions jQuery.data() : http://