|
December 23, 1999 Passing Data to Behaviors Tips: December 1999
Yehuda Shiran, Ph.D.
|
|
A Behavior describes the dynamic appearance of HTML elements that are associated with the specified Behavior. As such, Behavior does not include data of its own. It needs to operate on data that is stored in the Web page. This data is passed to the Behavior through the named properties specified in the interface section of the scriptlet. The Automation type of <IMPLEMENTS> tag includes these properties:
Notice the
The property names specified in the scriptlet interface must match those in the DHTML elements. You can pick any names you want and as many properties as you want. In our example, we associate a
Inside the script section of the scriptlet, you can use interface properties like any other local variables. In our Blinking Soccer example from Column 22, DHTML Behaviors, we use the
People who read this tip also read these tips: Look for similar tips by subject: |