Hey Dave (Hergio)... did you see clickfunction?

A forum for, well, anything really.
Gripes, moans, ideas or just general chit chat. EXCEPT SPAM!!! - Don't just register to post here - IT WILL GET DELETED!!!
Post Reply
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Hey Dave (Hergio)... did you see clickfunction?

Post by kevin3442 »

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
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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!!!
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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

Code: Select all

_mi[itemnumber][1]
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.
Post Reply