Script Trigger

[This is preliminary documentation and subject to change.]

Script triggers run the specified script statements on the broadcast client. They are formatted as shown following

"4 [<protocol>] script"

where

protocol
Is an optional parameter which specifies the scripting language to use. The default is Microsoft® JScript™ development software.

No other scripting languages are supported in the current version of Broadcast Architecture. Because the current version of the broadcast client does not recognize protocol, do not include this optional parameter in triggers you send.

script
Specifies the script to run on the client.

Remarks

When the Enhancement control receives a Script trigger, it runs the specified script as if it were embedded in the enhancement page. Using this trigger, you can greatly expand the functionality of the enhancement.

Examples

The following are examples of Script triggers that use JScript to print an alert box to the user.

"4 alert('You received an JScript trigger!')"