AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ScriptManagerHelper..::..CreateJavascriptInclude Method

Creates the javascript include on the client side. var {varibleName}= document.createElement('script'); {varibleName}.src = '{url}'; document.getElementsByTagName('head')[0].appendChild({varibleName});

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static string CreateJavascriptInclude(
	Page page,
	Type type,
	string varibleName,
	string url
)

Parameters

page
Type: Page
The page.
type
Type: Type
The type.
varibleName
Type: String
Name of the varible.
url
Type: String
The URL.

Return Value

System.String.