6. More About Events and Actions
Javascript Actions, Alerts and Confirmations
<< Trigger-Delayed Events   |   Back to Main   |   Other Client-Side QActions >>

View Source
will open in a new window
Triggering Arbitrary JavaScript, Alerts and Confirms
Qcodo includes several commonly used Javascript-based actions:
  • QAlertAction - to display a javascript "alert" type of dialog box
  • QConfirmAction - to display a javascript "confirm" type of dialog box, and execute following optional actions if the user hits "Ok"
  • QJavaScriptAction - to run any arbitrary javascript command(s)
The example below shows three different QButton controls which use all three of these action types.

Specifically for the QJavaScriptAction, we've defined a simple SomeArbitraryJavaScript() javascript function on the page itself, so that the button has some javascript to perform.

Click on the "QConfirmAction Example" button to change.