JavaScript

Wisej.Web.JavaScript

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Allows controls to execute javascript code.

public class JavaScript : Component, IExtenderProvider

Constructors

Initializes a new instance of the JavaScript without a specified container.

Initializes a new instance of the JavaScript class with a specified container.

NameTypeDescription

container

An IContainer that represents the container of the JavaScript extender.

Properties

Object: Returns or sets the object that contains programmer-supplied data associated with the JavaScript extender. (Default: null)

Methods

Returns true if the JavaScript extender can offer an extender property to the specified target component.

ParameterTypeDescription

target

The target object to add an extender property to.

Returns: Boolean. true if the JavaScript class can offer one or more extender properties; otherwise, false.

Removes all scripts.

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.

ParameterTypeDescription

control

The Control for which to retrieve the JavaScript code.

Returns: String. A String containing the javascript code for the specified control.

Returns the collection of JavaScript event handlers associated with the control.

ParameterTypeDescription

control

The Control to attach the JavaScript event handlers to.

Returns: ClientEventCollection.

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.

ParameterTypeDescription

control

The Control for which to retrieve the JavaScript file.

Returns: String. A String containing the name of the javascript file for the specified control.

Associates JavaScript code with the specified control.

ParameterTypeDescription

control

The Control to associate the JavaScript with.

script

The JavaScript code to execute when the control is created.

Associates JavaScript file with the specified control.

ParameterTypeDescription

control

The Control to associate the JavaScript file with.

file

The JavaScript file to execute when the control is created.

Implements

NameDescription

All wisej components implement this interface.

Allows an object to serialize itself.

Last updated