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

Class JavaScriptUtils

Inheritance
System.Object
ServiceLocator<IJavaScriptUtils, JavaScriptUtils>
JavaScriptUtils
Implements
IJavaScriptUtils
Inherited Members
ServiceLocator<IJavaScriptUtils, JavaScriptUtils>.Instance
ServiceLocator<IJavaScriptUtils, JavaScriptUtils>.Factory
ServiceLocator<IJavaScriptUtils, JavaScriptUtils>.SetTestableInstance(IJavaScriptUtils)
ServiceLocator<IJavaScriptUtils, JavaScriptUtils>.ClearInstance()
ServiceLocator<IJavaScriptUtils, JavaScriptUtils>.GetFactory()
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public class JavaScriptUtils : ServiceLocator<IJavaScriptUtils, JavaScriptUtils>, IJavaScriptUtils

Methods

| Improve this Doc View Source

GetFactory()

Gets the service locator factory.

Declaration
protected override Func<IJavaScriptUtils> GetFactory()
Returns
Type Description
Func<IJavaScriptUtils>

A factory function.

Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Common.Utilities.IJavaScriptUtils, DotNetNuke.Common.Utilities.JavaScriptUtils>.GetFactory()
| Improve this Doc View Source

RegisterJavascriptVariable(String, Object, Page, Type)

Registers a javascript variable in a page with its value.

Declaration
public void RegisterJavascriptVariable(string variableName, object value, Page page, Type type)
Parameters
Type Name Description
System.String variableName

Variable name and also the name of the registered code.

System.Object value

Object to be assigned to the variable.

Page page

Page where the varialbe will be registered.

Type type

Type.

Implements

IJavaScriptUtils

Extension Methods

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