[Project_owners] <listcell /> dia JavaScript

Eric Jung grimholtz at yahoo.com
Sat Oct 8 10:38:12 EDT 2005


Curious... why did you choose lists over trees? (trees w/o folders
are the same as lists, at least visually, but have the added benefit
of minimizing your code changes if/when you decide to implement
folders)

--- Paul Tomlin <paul at paultomlin.com> wrote:

> Paul Tomlin wrote:
> > Before I go tearing my hair out over this, is there a way to 
> > access/change a @label on a <listcell /> via script?
> > 
> > listitem.childNodes is an array of elements which return
> 'listcell' for 
> > listitem.childNodes.item(?).tagName.
> > 
> > However (from XulPlanet) <listcell /> doesn't have a label
> property 
> > within script. listitem.label (understandably) refers to the
> @label on 
> > the <listitem /> so I can't actually see a way to get at or
> change the 
> > @label on a <listcell />
> 
> 
> *groan*
> 
> listitem.childNodes.item(?).setAttribute('label', "don't be so
> stupid");
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Project_owners mailing list