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

Eric Jung grimholtz at yahoo.com
Thu Sep 8 18:31:02 EDT 2005


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


--- Eric Jung <grimholtz at yahoo.com> wrote:

> Hi,
> I have an rdf-backed <tree/> specfied like this:
> 
> <tree id="accountsTree" align="stretch"
>   onselect="onAccountsTreeSelection();" flex="1"
>   style="width: 30em; height: 15em;"
>   seltype="single"
>   enableColumnDrag="true"
>   ref="http://passwordmaker.mozdev.org/accounts"
>   datasources="domains.rdf">
> 
> After adding an element to the RDF, the tree is updated as
> expected.
> But now I'd like to select the new element in the tree. How can I
> map
> the newly-added element to a tree index I've tried things like:
> 
> var curSelNode =
>  
> accountsTree.contentView.getItemAtIndex(accountsTree.currentIndex);
> 
> but this just gives me the currently selected item (as expected).
> 
> Any help would be greatly appreciated,
> Eric
> 
> 
> 
> 	
> 		
> ______________________________________________________
> Click here to donate to the Hurricane Katrina relief effort.
> http://store.yahoo.com/redcross-donate3/
> _______________________________________________
> 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