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

Neil Deakin enndeakin at sympatico.ca
Fri Sep 9 15:32:30 EDT 2005


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



More information about the Project_owners mailing list