CodeCarvings.Piczard
GetLoadScript Method
See Also  Send Feedback
CodeCarvings.Piczard.Web.Helpers Namespace > JSHelper Class : GetLoadScript Method

url
The url of the Javascript file to load.
scriptVarName
The name of the javascript variable that will handle the dynamically created <script> DOM element.
callbackfunction
An optional javascript code to run when the specified Javascript file is loaded.
Gets the Javascript code necessary to dynamically load the specified Javascript file.

Syntax

Visual Basic (Declaration)  
Public Shared Function GetLoadScript( _
   ByVal url As String, _
   ByVal scriptVarName As String, _
   ByVal callbackfunction As String _
) As String
C#  
public static string GetLoadScript( 
   string url,
   string scriptVarName,
   string callbackfunction
)

Parameters

url
The url of the Javascript file to load.
scriptVarName
The name of the javascript variable that will handle the dynamically created <script> DOM element.
callbackfunction
An optional javascript code to run when the specified Javascript file is loaded.

Return Value

The Javascript code necessary to dynamically load the specified Javascript file.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.