Siebel Developer's Reference > Tags >

swe:scripts


Purpose

Provides a hint for the location to place any JavaScript that may be generated for the page.

Usage

<swe:scripts/>

Attributes

None.

Restrictions

Siebel Web Engine includes some JavaScript code in every page that is sent to the browser. The requirement is for these scripts to occur after all the Siebel content in the page, but within the HTML <body> tag.

The <swe:scripts> tag is used to indicate to Siebel Web Engine exactly where you wish this code to be placed. By default, if this tag is not specified, Siebel Web Engine places the JavaScript code immediately after the last tag on the page. In some cases this might occur within an HTML formatting tag like <td>... </td>, and sometimes this might cause minor formatting problems in browsers when rendering the page.

NOTE:  The <swe:scripts> tag should be the last Siebel tag in the template, and should be contained within the HTML <body> tag.

As mentioned, the Siebel Web Engine always checks for the correct placement of this tag, and will reposition it if needed, and remove any superfluous <swe:scripts> tag.


 Siebel Developer's Reference 
 Published: 23 October 2003