onChangeSelection: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: This event is triggered whenever the user selects a token. As a frame-based event a frame containing the event code has to opened. Set up: create a frame that has this special html tag in...)
 
(Clarifying usage and linking to Forms tutorial)
Line 1: Line 1:
This event is triggered whenever the user selects a token.
This event is triggered whenever the user selects a token.


As a frame-based event a frame containing the event code has to opened.
As a frame-based event, a frame containing the event code has to be opened.
Set up: create a frame that has this special html tag in it:
 
== Set up ==
Create a frame that has this special html tag in it:


<source lang="html4strict">
<source lang="html4strict">
Line 8: Line 10:
</source>
</source>


 
Replace {{code|macroLink}} by an actual macroLinkText-call to a macro of your choice (the returned value of {{func|macroLinkText}}). A common practice is to call the frame opening macro itself to actualize the content.
Instead of {{code|macroLink}} you give a macro link (the returned value of {{func|macroLinkText}}.
== See Also ==
[[Forms tutorial#Events]]
[[Category:Event]]
[[Category:Event]]

Revision as of 13:09, 13 February 2012

This event is triggered whenever the user selects a token.

As a frame-based event, a frame containing the event code has to be opened.

Set up

Create a frame that has this special html tag in it:

<link rel='onChangeSelection' type='macro' href='macroLink'>

Replace macroLink by an actual macroLinkText-call to a macro of your choice (the returned value of macroLinkText()). A common practice is to call the frame opening macro itself to actualize the content.

See Also

Forms tutorial#Events