Triggering Arbitrary JavaScript, Alerts and Confirms
QCubed includes several commonly used Javascript-based actions:
- Alert - to display a javascript "alert" type of dialog box
- Confirm - to display a javascript "confirm" type of dialog box, and execute following optional actions if the user hits "Ok"
- JavaScript - to run any arbitrary javascript command(s)
This example shows three different Button controls which use all three of these action types.
Specifically for the JavaScript, we've defined a simple SomeArbitraryJavaScript()
javascript function on the page itself, so that the button has some javascript to perform.
If you are interested in more advanced and flexible types of confirmation or prompts, see the examples at
Extending Panels to Create Modal "Dialog Boxes".