CyberStore Documentation
LoadClientStartupScripts Method


Dovetail.Ecommerce.ControlBases Namespace > CyberStoreBaseControl Class : LoadClientStartupScripts Method
The client script.
Name of the registered script.
Type of the registering control.
(Optional) True to minify.
Loads JavaScript functions as Startup Scripts to the client.
Syntax
'Declaration
 
Public Sub LoadClientStartupScripts( _
   ByVal ClientScript As String, _
   ByVal RegisteredScriptName As String, _
   ByVal RegisteringControlType As Type, _
   Optional ByVal minify As Boolean _
) 
'Usage
 
Dim instance As CyberStoreBaseControl
Dim ClientScript As String
Dim RegisteredScriptName As String
Dim RegisteringControlType As Type
Dim minify As Boolean
 
instance.LoadClientStartupScripts(ClientScript, RegisteredScriptName, RegisteringControlType, minify)

Parameters

ClientScript
The client script.
RegisteredScriptName
Name of the registered script.
RegisteringControlType
Type of the registering control.
minify
(Optional) True to minify.
Remarks
When you use RegisterStartupScript, it will render your script after all the elements in the page (right before the form's end tag). This enables the script to call or reference page elements without the possibility of it not finding them in the Page's DOM.
See Also

Reference

CyberStoreBaseControl Class
CyberStoreBaseControl Members