Class JavaScriptUtils
Implements
Inherited Members
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public class JavaScriptUtils : ServiceLocator<IJavaScriptUtils, JavaScriptUtils>, IJavaScriptUtils
Methods
| Improve this Doc View SourceGetFactory()
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. |