Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > AJAX helper object > Methods

JavaScript API: AJAX helper object > setEnabled()

Scroll Prev Next More

 

The setEnabled() method enables the previously disabled button, so it becomes clickable again. Recommended to use in button's Client After event.

Syntax

ajax.setEnabled();

Arguments

No arguments.

Return value

No return value.

Example

Let's say you have added a Custom button where the Server event needs to be delayed by 5 seconds. And to prevent users from clicking the button while the delay takes place, you have disabled the button.

 

Add the following code to the Client After event to enable the button:

 

ctrl.setEnabled();

See also:

JavaScript API: AJAX helper object > setDisabled()

Tri-part events

Dialog API

PDF API

JavaScript API: AJAX helper object

About JavaScript API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software