scriptBlock - Output Script
Outputs a client script.
Category
Core ControlsSyntax
<xp:scriptBlock attributes>content</xp:scriptBlock>
Usage
This control applies only to a custom control.At run time, the script executes when the XPage containing the custom control is loaded to the client.
Examples
This Output Script control is in a custom control. It displays analert
box when embedded
in an XPage and the XPage is opened.<xp:scriptBlock id="scriptBlock2" type="text/javascript">
<xp:this.value><![CDATA[alert("hello custom")]]></xp:this.value>
</xp:scriptBlock>