[Project_owners] How to select new <treerow/>?

Eric Jung grimholtz at yahoo.com
Fri Sep 9 14:23:50 EDT 2005


Neil / Michael,

Thanks very much for all the ideas. The one below from Neil finally
worked...

If you guys have projects which you'd like me to donate to, please
send me the links!

Many thanks,
-Eric


--- Neil Deakin <enndeakin at sympatico.ca> wrote:

> Eric Jung wrote:
> 
> >Anyone? I also posted this here:
> >http://forums.mozillazine.org/viewtopic.php?p=1728115
> >but haven't gotten any replies. To rephrase the problem: I have an
> >RDF-backed <tree/>. I add a new resource to the RDF which
> correctly
> >displays in the tree. Now how can I select/highlight that new item
> in
> >the tree?
> >
> >Would appreciate any help--even donate cash to another project in
> >return :)
> >-Eric
> >
> >  
> >
> 
> var item = document.getElementById(resource_uri);
> var idx = tree.view.getIndexOfItem(item);
> if (idx >= 0) tree.view.selection.select(idx);
> 
> / Neil
> 
> _______________________________________________
> 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