Databases Reference
In-Depth Information
affectedElements : affectedElements is an array of elements that should be
modified/used by the action. In this example, it is the three tabs at the top of
the page, which represent the three elements (0, 1, and 2) in the array, as shown
in Figure 4-16. This means that in your JavaScript code you should reference
the affectedElements array rather than hard-code objects that should be
modified.
Referencing the affectedElements object rather than a hard-coded value is one
of the toughest things to get over when first working with dynamic actions. It
does take some getting used to, but you should be comfortable with this notion
after a while of working with dynamic actions.
Figure 4-16. Dynamic action this affectedElements
browserEvent : The browserEvent attribute is the event that triggered the
dynamic action to fire. In Figure 4-17, you can see that the element that caused
the dynamic action to fire was the button.
Figure 4-17. Dynamic action this browserEvent
 
Search WWH ::




Custom Search