Main Menu
Lecture 1
Lecture 3
Lecture 4
Lecture 5
Lecture 6
Lecture 7
 

 

 

Dynamic elements with actions

WOHyperlink

can use an action to locate the new page to return

can also use pagename and href attributes

WOSubmitButton

bound to an action

A form can have multiple submit buttons each bound to a different action

WOActiveImage and WOImageButton

Images can act as submit buttons and hyperlinks

Also has x and y coordinates

When the action method is invoked, variables bound to theses attributes contain the coordinates where the mouse was clicked

use the filename attribute to map to in preference to the src attribute

filename attribute just requires the name of the image - see aboove code example - not the absolute or relative path name - makes code less prone to error

Image Maps

Active regions can be broken down into smaller regions each with its own action

This is known as mapping the image

Parts of the image that wern't mapped use the default action

An image map is specified with a special file called a map file

 


 

Page updated August 17, 2004