Action Menu Model
Username:  
Password:
  > Home
> User Guide
> Reference
v Portal Object
    o Page Menu Model
    o Action Menu Model
    o Object Reference
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Portal Object >> Action Menu Model <=  =>      <  1  2  3  4  5  6  7  >  
An Action Menu Menu that triggers actions

An Action Menu triggers a client script function to perform a particular task, typically to bring up a new page.  It is different from a Page Menu because it can also bring up sub menus or display other dynamic information.  This makes an Action Menu more interactive, but on the other hand, more programming works on the client.

Almost all features in the Page Menu Model can be used in the Action Menu Model, including the access control, login/logout form and search form.  These will not be repeated in this section.

Instead, we focus on the interactivity of the client scripts in an Action Menu page.  We use JavaScript as an example.  There are three tiers of structure: Item is a unit of text clickable into an action; Menu is a collection of Items and is itself an Item (clickable in the same way); and Level refers to the depth in the menu hierarchy.

Here are some structures for you to specify the menu format:

JS Variable Description
LevelOpen An array indexed by level containing the format of the text preceding the level text.
LevelClose An array indexed by level containing the format of the text succeeding the level text.
MenuOpen An array indexed by level containing the format of the text preceding menu text in the level.
MenuOpen An array indexed by level containing the format of the text succeeding menu text in the level.
ItemWhole An array indexed by level containing the format of text of an Item unit as a whole in the level.
ItemSeparator An array indexed by level containing the format of the text between two consecutive items (but not before the first and not after the last).
Note: These structures come with the Portal Object and therefore do not need to be declared (e.g. as "new Array()") or initialised (e.g. with "").  You only need to define the ones you need.
Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd