Class that handles embedding of common script files like jQuery into a page or return complete script tags for insertion into a ViewPage as a string.
Westwind.Web.ScriptLoader
public static class ScriptLoader : object
Class Members
Member | Description | |
---|---|---|
jQueryCdnFallbackUrl |
Fallback Url if CDN can't be reached. | |
jQueryCdnUrl |
jQuery CDN Url on Google | |
jQueryLoadMode |
Determines what location jQuery is loaded from | |
jQueryUiCdnUrl |
jQuery CDN Url on Google | |
jQueryUiCssBaseUrl |
The url the jQuery UI base CSS theme. Used in jQueryUiCssLink. Should point at the jQuery UI base theme - the theme is replaced either explicitly or from the jQueryUiTheme property value.soap | |
jQueryUiLocalFallbackUrl |
jQuery UI fallback Url if CDN is unavailable or WebResource is used Note: The file needs to exist and hold the minimized version of jQuery ui | |
jQueryUiTheme |
The theme that is applied to the jQueryUiCssBaseUrl | |
jQueryLink |
Inserts a script link to load jQuery into the page based on the jQueryLoadModes settings of this class. Default load is by CDN plus WebResource fallback public static string jQueryLink(jQueryLoadModes jQueryLoadMode, string url) |
|
jQueryUiCssLink |
Returns the global jQuery UI Url and theme set on this class public static string jQueryUiCssLink(string theme) |
|
jQueryUiLink |
Inserts a script link to load jQuery into the page based on the jQueryLoadModes settings of this class. Default load is by CDN plus WebResource fallback public static string jQueryUiLink(jQueryLoadModes jQueryLoadMode, string url) |
|
LoadjQuery |
Loads jQuery depending on configuration settings (CDN, WebResource or site url) and injects the full script link into the page. public static void LoadjQuery(Control control, string jQueryUrl) public static void LoadjQuery(Control control) |
|
LoadjQueryUi |
Loads the appropriate jScript library out of the scripts directory and injects into a WebForms page. public static void LoadjQueryUi(Control control, string jQueryUiUrl) |
|
LoadwwjQuery |
Loads the ww.jquery.js library from Resources at the end of the Html Header (if available) public static void LoadwwjQuery(Control control, bool loadjQuery) |
|
wwJqueryLink |
Returns a fully qualified script tag for loading ww.jquery.js public static string wwJqueryLink(jQueryLoadModes jQueryLoadMode, string url) |
Requirements
Namespace: Westwind.WebAssembly: westwind.web.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic