Enigo Homepage
Client Login
User ID:
Password:

<A>

Return to Reference...

Property Description Default
action Invokes the named method within the current component. If that method yields a new component, application flow will switch to that component. Otherwise the current component is redisplayed when the method exits. {oid} : Names the method to invoke.

The dynamic <A> tag is used to invoke an action of some sort within the application. It can be used as one would traditionally use an <A> tag, to jump to another location (within the application), or it can be used simply to invoke a method in order to register some sort of event or to change some sort of state.

Typical Usage:

<a oid="gotoMainMenu">Return to the Main Menu...</a>

Usage Via A Binding:

<a oid="menuJump">Return to the Main Menu...</a>
menuJump {
  action = :gotoMainMenu
}

One might want to use a binding if one desired the content template to remain static while preserving the ability of the developer to change which method clicking on the link invokes. The oid becomes a label instead of a method name, further seperating the issues of content from the issues of coding.

Return to Reference...
Do you have a comment or a suggestion?