Description
The OnPageLoad event occurs after the page is displayed in the browser. Use this event to work with the "edit" controls using the JavaScript API.
Syntax
OnPageLoad(pageObj, pageid, proxy, inlineRow)
Arguments
pageObj
an object representing the current page. For more information, see RunnerPage class.
pageid
the unique numeric identifier of the page.
proxy
data transferred from PHP code using setProxyValue function.
inlineRow
InlineRow object available in Add/Edit page events in the inline mode.
Applies to pages
List, View, Add, Edit, Print, Search, Export, Report, Chart, Login, Register, Password reminder, Change password.
Examples
List page behavior:
•How to calculate values (totals) on the fly
•How to control Inline Add/Edit functionality from script
•How to refresh List page after Edit in popup
•How to hide 'Edit selected'/'Delete selected' buttons
•How to display all Options on Search panel
Add/Edit lists behavior:
•How to ask for confirmation before saving the record
•How to control multi-step pages
Form and controls:
•How to show dropdown list of US states if US was selected in country list
•How to enable/disable a button
Tweaking control appearance:
•Change width of edit box with AJAX popup
•Change width of text field on Quick Search panel
•Change font in "edit" controls
•How to convert input into upper case
See also:
•About Grid Row JavaScript API
•JavaScript API: AJAX helper object
•Troubleshooting JavaScript errors