Class JavaScript
Inheritance
Namespace: DotNetNuke.Framework.JavaScriptLibraries
Assembly: DotNetNuke.dll
Syntax
public class JavaScript : object
Constructors
| Improve this Doc View SourceJavaScript()
Initializes a new instance of the JavaScript class.
Declaration
protected JavaScript()
Methods
| Improve this Doc View SourceGetJQueryScriptReference()
Declaration
public static string GetJQueryScriptReference()
Returns
Type | Description |
---|---|
System.String |
IsInstalled(String)
checks whether the script file is a known javascript library.
Declaration
public static bool IsInstalled(string jsname)
Parameters
Type | Name | Description |
---|---|---|
System.String | jsname | script identifier. |
Returns
Type | Description |
---|---|
System.Boolean | true if a library with the given name is installed, otherwise false. |
JQueryUIFile(Boolean)
Declaration
public static string JQueryUIFile(bool getMinFile)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | getMinFile |
Returns
Type | Description |
---|---|
System.String |
Register(Page)
method is called once per page event cycle and will load all scripts requested during that page processing cycle.
Declaration
public static void Register(Page page)
Parameters
Type | Name | Description |
---|---|---|
Page | page | reference to the current page. |
RegisterClientReference(Page, ClientAPI.ClientNamespaceReferences)
Declaration
public static void RegisterClientReference(Page page, ClientAPI.ClientNamespaceReferences reference)
Parameters
Type | Name | Description |
---|---|---|
Page | page | |
ClientAPI.ClientNamespaceReferences | reference |
RequestRegistration(String, Version, SpecificVersion)
Requests a script to be added to the page.
Declaration
public static void RequestRegistration(string jsname, Version version, SpecificVersion specific)
Parameters
Type | Name | Description |
---|---|---|
System.String | jsname | the library name. |
Version | version | the library's version. |
SpecificVersion | specific | how much of the |
RequestRegistration(String, Version)
Requests a script to be added to the page.
Declaration
public static void RequestRegistration(string jsname, Version version)
Parameters
Type | Name | Description |
---|---|---|
System.String | jsname | the library name. |
Version | version | the library's version. |
RequestRegistration(String)
Requests a script to be added to the page.
Declaration
public static void RequestRegistration(string jsname)
Parameters
Type | Name | Description |
---|---|---|
System.String | jsname | the library name. |
UseDebugScript()
determine whether to use the debug script for a file.
Declaration
public static bool UseDebugScript()
Returns
Type | Description |
---|---|
System.Boolean | whether to use the debug script. |
Version(String)
Returns the version of a javascript library from the database.
Declaration
public static string Version(string jsname)
Parameters
Type | Name | Description |
---|---|---|
System.String | jsname | the library name. |
Returns
Type | Description |
---|---|
System.String | The highest version number of the library or |