Board Logo

Event Hanlder function Question
kenster - 11/1/2004 at 04:52 AM

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 - 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']


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/