kenster
Junior Member
Posts: 3
Registered: 10/15/2004
Member Is Offline
|
| posted on 11/1/2004 at 04:52 AM |
|
|
Event Hanlder function Question
So far I can associate a function with an event handler. For example: {'hs':'myfunction'}. The only param for myfunction is
either item or tree. How can I pass a different param through this function. How do i call this funtion if it has an additional param?
Thank
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 11/1/2004 at 11:29 AM |
|
|
You could assign this parameter in the item scope settings. E.g.:
['some_item','some_link.html',{'hs':'myfunction','hs_param1':'some_value'}]
So when you get tree item object in the handler function you can access the parameter value via o_item.a_config[2]['hs_param1']
|
|
|