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

Neil neil at parkwaycc.co.uk
Thu Sep 15 17:11:46 EDT 2005


Eric Jung wrote:

>--- Neil Deakin <enndeakin at sympatico.ca> wrote:
>
>>var item = document.getElementById(resource_uri);
>>var idx = tree.view.getIndexOfItem(item);
>>if (idx >= 0) tree.view.selection.select(idx);
>>
>Thanks very much for all the ideas. The one from Neil finally worked...
>  
>
Don't forget that should you switch to a builder view (<tree 
flags="dont-build-content">) you will need to use
var res = RDF.GetResource(resource_uri);
var idx = tree.view.getIndexOfResource(res);


More information about the Project_owners mailing list