O'Reilly logo

ColdFusion 9 Developer Tutorial by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Message boxes

There are three types of message boxes that can be created with this method: alert, confirm, and response. We will give an example that uses all three in the same block of code. After clicking on the button, it will call up the unique type of requestor. It should be noted that the alert is an AJAX alert box and we will prove that by calling the standard alert box in response to the selections made after choosing the buttons in the message boxes.

First we need to create our standard HTML wrapper and some functions to interact with the boxes. Our showInputResult() function is the smartest of the message box handlers. It watches for both the button that was clicked and also deals with the input entered, if any. The next function is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required