Hey Dave,
Did you notice that you now (RC19) have your desired clickfunction property? Think we'll get openfunction and closefunction properties down the road... Andy?
Kevin
Hey Dave (Hergio)... did you see clickfunction?
Yeah thats awesome! So Andy, this clickfunction, I know previously this could have been done using the url=javascript:thing(), what makes this one different? Essentially is it putting an onClick attribute into the menu and whatever you specify to clickFunction goes into the menu element?
So
clickfunction=doSomething();
in the menu definition is equivalent to
onClick="doSomething();"
in a HTML element that renders the menu?
Thanks Alot Andy!!!
So
clickfunction=doSomething();
in the menu definition is equivalent to
onClick="doSomething();"
in a HTML element that renders the menu?
Thanks Alot Andy!!!
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Software Engineer
"Helping to make the menu better, one at a time."
Yup, clickfunction is another method. It's in addition to url= so that if your url is based on certain properties returned from a click, it can be changed.
FYI - _m is an array of menus and _mi is an array of menu items. The quick reference tells you which array slot the property is in so is the menu items text.
It would have been nicer to use OOP but would have made the menu way too big in terms of file size. So everything is stored in arrays.
Cheers
Andy.
FYI - _m is an array of menus and _mi is an array of menu items. The quick reference tells you which array slot the property is in so
Code: Select all
_mi[itemnumber][1]
It would have been nicer to use OOP but would have made the menu way too big in terms of file size. So everything is stored in arrays.
Cheers
Andy.