JavaScript
Wisej.Web.JavaScript
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.1.0.0)
Allows controls to execute javascript code.
Constructors
JavaScript()
Initializes a new instance of the JavaScript without a specified container.
JavaScript(container)
Initializes a new instance of the JavaScript class with a specified container.
Properties
Tag
Object: Returns or sets the object that contains programmer-supplied data associated with the JavaScript extender. (Default: null
)
Methods
CanExtend(target)
Returns true if the JavaScript extender can offer an extender property to the specified target component.
Returns: Boolean. true if the JavaScript class can offer one or more extender properties; otherwise, false.
Clear()
Removes all scripts.
GetJavaScript(control)
Retrieves the JavaScript code associated with the specified control. The JavaScript code will be execute on the client when the control is created or refreshed.
Returns: String. A String containing the javascript code for the specified control.
GetJavaScriptEvents(control)
Returns the collection of JavaScript event handlers associated with the control.
Returns: ClientEventCollection.
GetJavaScriptSource(control)
Retrieves the JavaScript file associated with the specified control. The JavaScript code will be execute on the client when the control is created or refreshed.
Returns: String. A String containing the name of the javascript file for the specified control.
SetJavaScript(control, script)
Associates JavaScript code with the specified control.
SetJavaScriptSource(control, file)
Associates JavaScript file with the specified control.
Implements
All wisej components implement this interface.
Allows an object to serialize itself.
Last updated