Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Calling focus on specific branch/leaf?
jsuen
Member

Posts: 10
Registered: 12/19/2006
Member Is Offline
posted on 1/18/2007 at 07:05 PM Reply With Quote
Calling focus on specific branch/leaf?


Hi,

I was just wondering if it was possible in Tree Menu Pro to call the focus() method on a specific node (leaf/branch).
Following on from my previous thread, if I call o_item.focus() nothing seems to happen? The method code is attached, thanks.

Cheers,

Jon

Attachment: searchTree.txt (1.18kb)
This file has been downloaded 676 times
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 1/19/2007 at 02:33 PM Reply With Quote

There is no such method in o_item object. What is that you try to achieve anyway?
View User's Profile View All Posts By User U2U Member
jsuen
Member

Posts: 10
Registered: 12/19/2006
Member Is Offline
posted on 1/23/2007 at 09:53 PM Reply With Quote

Hi,

I was trying to have a found entry within the Tigra tree to be the set focus for a user's browser window (or frame). I am aware of the Javascript focus() method and had hoped to achieve something similar to this, i.e.
Code:

<script type="text/javascript">
document.getElementById('email').focus();
</script>


We have achieved this in our previous navigation tree technology by splitting a document body into an array of anchor tags and calling focus() on one particular array item.
Would this still be achievable within the Tigra tree menus?

Thanks,

Jon
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 1/24/2007 at 10:02 AM Reply With Quote

In tree there anchor tags sit inside the <TD> tags with unique ID for each tree item. Here is the naming convention:

id="t' + o_item.o_root.n_id + '_' + o_item.n_id + '"

this means that the id of the first element of the first tree is t0_0
you can use this information to access the anchor tag of a particular tree item.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004