AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ScriptManagerHelper..::..GenerateJavascriptInclude Method

Generates the javascript include. 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 GenerateJavascriptInclude(
	string url,
	string variableName,
	bool includeScriptTags
)

Parameters

url
Type: String
The URL.
variableName
Type: String
Name of the variable.
includeScriptTags
Type: Boolean
if set to true [include script tags].

Return Value

System.String.