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: Multiple events when Tree branch is selected
jsuen
Member

Posts: 10
Registered: 12/19/2006
Member Is Offline
posted on 12/19/2006 at 04:37 PM Reply With Quote
Multiple events when Tree branch is selected


Hi,

I have bought the Pro version of the Tigra Tree Menus, and have managed to get it generating the tree hierarchy I need fairly easily.

My query now is that I'd like for branches that are selected to not only open up any child leaf nodes, but also to fire off another event (i.e. call a Javascript function).

When I override the OpenItemHandler per item, i.e. {'hs':'OnItemOpenHandler', 'link': 'http://www.google.com'} - this can only call the Javascript (and does not open the branch anymore).

Does anyone know of another way to add an event for a multiple chain?

Thanks,

Jon
View User's Profile View All Posts By User U2U Member
jsuen
Member

Posts: 10
Registered: 12/19/2006
Member Is Offline
posted on 12/19/2006 at 04:53 PM Reply With Quote

For anyone who's interested, this is probably best done in the tree_tpl.js (or similar file):
'onItemOpen':'open_test', // on item open event handler
'onItemClose':'close_test', // on item close event handler

As mentioned in the documentation, you can pass a parameter (or call other Javascript functions) into your defined open_test or close_test methods:
function open_test (o_item) {
testAlert(o_item.a_config[2]['link']);
// here you can insert your item open event handler
return true;
}

Jon
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Tree Menu
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   
Tigra Tree Menu PRO
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