Click or drag to resize
InsertScript

The InsertScript tag is not a control; during the page generation process, the dashboard's xsl filter creates javascript code, either automatically to support controls, or manually with the Script tag.

This javascript code is inserted in a script tag in the head tag of the page, but if you want to return page parts using XMLHttpRequests, the head tag will not be present, and neither will the generated javascript.

The InsertScript tag is used to tell the xsl filter to put the generated javascript in a script tag at this place, generally at the top of the content.

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child elements

None.

Parent elements

Element

Description

any xhtml or xsl tag

Examples
<xsl:template match="/">
  <acs:InsertScript/>
  <div id="mypart">
    <acs:Script>
      // javascript code
    </acs:Script>
    <acs:Calendar id="mycalendar"/>
  </div>
</xsl:template>