[jQuery] Re: Meta Data within elements

2009-01-13 Thread Saif ullah
*http://tinyurl.com/99oc99*

On Mon, Jan 12, 2009 at 8:46 PM, alexquery  wrote:

>
>
> I am creating a product/category tree using jquery. I would like to be able
> to store additional data within each node.
>
> The nodes in my tree are basicaly list elements. How would I add data to
> these elements such as the count of products and categories beneath them ?
>
> I tried this method.
>
> jQuery.data(objNode, 'intProdCounter', intProdCounter);
>
> But I have had some problems.. are there any other ways of acheiving this ?
>
> thanks for any help in advance
>
>
> --
> View this message in context:
> http://www.nabble.com/Meta-Data-within-elements-tp21416642s27240p21416642.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>


[jQuery] Re: Meta Data within elements

2009-01-13 Thread Gordon

You could try the jQuery metadata plugin if you need the metadata to
be in the markup itself. If you don't then using data is probably a
better approach.

On Jan 12, 3:46 pm, alexquery  wrote:
> I am creating a product/category tree using jquery. I would like to be able
> to store additional data within each node.
>
> The nodes in my tree are basicaly list elements. How would I add data to
> these elements such as the count of products and categories beneath them ?
>
> I tried this method.
>
> jQuery.data(objNode, 'intProdCounter', intProdCounter);
>
> But I have had some problems.. are there any other ways of acheiving this ?
>
> thanks for any help in advance
>
> --
> View this message in 
> context:http://www.nabble.com/Meta-Data-within-elements-tp21416642s27240p2141...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: Meta Data within elements

2009-01-13 Thread alexquery


BUMP

alexquery wrote:
> 
> I am creating a product/category tree using jquery. I would like to be
> able to store additional data within each node.
> 
> The nodes in my tree are basicaly list elements. How would I add data to
> these elements such as the count of products and categories beneath them ?
> 
> I tried this method.
> 
> jQuery.data(objNode, 'intProdCounter', intProdCounter);
> 
> But I have had some problems.. are there any other ways of acheiving this
> ?
> 
> thanks for any help in advance
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Meta-Data-within-elements-tp21416642s27240p21431844.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.