wwWebPage.RegisterClientScriptInclude

Inserts a link to an external script file into the page. Generates into the page.

Scripts can be injected into the page at various locations to allow more control over scripts and provide for better integration with manually added scripts. The three locations - headertop, header and script - correspond roughly to library, support/plug-in library, and application level locations.

Injected script tags are of the following form:

<script src="/virtual/script.js" type="text/javascript" />
o.wwWebPage.RegisterClientScriptInclude(lcID,lcScriptLink,lcLocation)

Parameters

lcID
An id for this script resource - generally this id should be a shared id so the script file only loads once.

lcScriptLink
A full URL to the script resource. You may use ~ syntax to access relative Urls.

lcLocation
Optional location where the script is injected. Possible values are: headertop - at the top of the tag header - at the bottom of the tag script or not passed - after the

tag

Scripts are injected at these locations based on priority. The default behavior is script

See also