Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API

About JavaScript API

Scroll Prev Next More

 

JavaScript API allows you to work with the "edit" controls, manage search panel. JavaScript API objects are available in the JavaScript OnLoad event of the appropriate page.

Objects

Object

Description

AJAX helper

Provides asynchronous functions for JavaScript events.

Control

Allows to work with the "edit" controls.

Date Control

Allows working in-depth with the date values.

InlineRow

Allows to process clicking the Cancel button in the Inline mode on the Add/Edit pages.

RunnerPage

Represents the current page object.

SearchController (deprecated)

Allows to manage the search panel.

SearchField

Allows to manage search fields on the search panel.

 

The JavaScript API works with Add/Edit/View/Register pages.

 

For example, use the following code to make the field red on the View page.

 

var ctrl = Runner.getControl(pageid,'action');
ctrl.addStyle('color: red');

Examples:

Ask for confirmation before saving a record

Change font size in text box

Change font in "edit" controls

Change width of edit box with AJAX popup

Change width of text field on Quick Search panel

How to calculate values (totals) on the fly

How to control Inline Add/Edit functionality from script

How to enable/disable a button

How to hide 'Edit selected'/'Delete selected' buttons

How to refresh List page after Edit in popup

How to control Inline Add/Edit functionality from script

Show dropdown list of US states if US was selected in country list

See also:

JavaScript API: Control object > addStyle()

JavaScript API: Control object > getControl()

Events: JavaScript OnLoad

 

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