Brent
|
| Posted: 03/23/2002, 11:02 PM |
|
Menu items are usually good for going to another page and that's about it.
Why can't there be a Click event so we can put code in the menu item that gets
executed when the user clicks on it?
Basically it would resubmit the menu form with a parameter like:
FormAction=ClickField1
and this would execute the embed code for "ClickField1". This means menu items
could be used for more than just navigation. We could easily write any type of
code we like for any menu item.
So my question is how can I do this now using just PHP code? (No JSP please)
The only thing I can think of is to create a record form and add buttons to the
caption to submit back to the form using a submit value. This gets overly
complicated and CC needs a much easier way to add code to menus. The other
alternative is to have the menu item go to a dummy page whose sole purpose is
to get a parameter, determine what action it is to take, execute it, then return
back to the calling form. This too is overly complicated.
So I'm sure someone has an easy way on how to assign code to a menu item. Right???
|
|
|
 |
CodeCharge Support
|
| Posted: 03/25/2002, 2:36 AM |
|
the solutions isn't so easy as you probably want. As menu items are url links they are pointing to any page. Create such links pointing to pages you need and pass parameters that shows what action is to be done when the link is selected. In Open event of target page put PHP code that should be executed (some action) depending on parameters passed.
|
|
|
 |
|