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

url
The url of the CSS file to load.
cssVarName
The name of the javascript variable that will handle the dynamically created <link> DOM element. 
Gets the Javascript code necessary to dynamically load the specified CSS file.

Syntax

Visual Basic (Declaration)  
Public Shared Function GetLoadCSS( _
   ByVal url As String, _
   ByVal cssVarName As String _
) As String
C#  
public static string GetLoadCSS( 
   string url,
   string cssVarName
)

Parameters

url
The url of the CSS file to load.
cssVarName
The name of the javascript variable that will handle the dynamically created <link> DOM element. 

Return Value

The Javascript code necessary to dynamically load the specified CSS 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.