• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class JavaScript

Inheritance
System.Object
JavaScript
Namespace: DotNetNuke.Framework.JavaScriptLibraries
Assembly: DotNetNuke.dll
Syntax
public class JavaScript : object

Constructors

| Improve this Doc View Source

JavaScript()

Initializes a new instance of the JavaScript class.

Declaration
protected JavaScript()

Methods

| Improve this Doc View Source

GetJQueryScriptReference()

Declaration
public static string GetJQueryScriptReference()
Returns
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

JQueryUIFile(Boolean)

Declaration
public static string JQueryUIFile(bool getMinFile)
Parameters
Type Name Description
System.Boolean getMinFile
Returns
Type Description
System.String
| Improve this Doc View Source

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.

| Improve this Doc View Source

RegisterClientReference(Page, ClientAPI.ClientNamespaceReferences)

Declaration
public static void RegisterClientReference(Page page, ClientAPI.ClientNamespaceReferences reference)
Parameters
Type Name Description
Page page
ClientAPI.ClientNamespaceReferences reference
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 version to pay attention to. When Latest is passed, ignore the version. When LatestMajor is passed, match the major version. When LatestMinor is passed, match the major and minor versions. When Exact is passed, match all parts of the version.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS