Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 862

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
The following code illustrates styling:
Using the cfmessagebox tag
The
tag lets you define controls for displaying pop-up messages. In addition to the standard alert box,
cfmessagebox
this tag lets you include a prompt and entry field in the box.
Using confirm dialog
The following code shows how to build a confirm message box with two buttons YES and NO.
<cfmessagebox
type="confirm"
name="msgbox1"
title="Confirm Dialog"
message="Do you want proceed?"
buttonType="YesNo"
icon="info"
labelYes="Click Yes to continue"
labelNo="No"
x=100
y=200>
<!--- This example illustrates usage of the Confirm dialog in "YesNoCancel" mode --->
<cfmessagebox
type="confirm"
name="msgbox2"
title="Save File"
message="Do you want to save the file?"
buttonType="YesNoCancel"
icon="question"
labelYes="Click Yes to save the file"
labelNo="No"
labelCancel="Quit"
width="400"
x=500
y=200>
<br><br>
<input
type="button"
name="confirm1"
onClick="javascript:ColdFusion.MessageBox.show('msgbox1');"
value="YesNo Confirm"
>
<input
type="button"
name="confirm2"
onClick="javascript:ColdFusion.MessageBox.show('msgbox2');"
value="YesNoCancel Confirm"
>
Styling a message box
The
attribute, a CSS style specification for the body of the message box helps you to style the message. As
bodyStyle
a general rule, use this attribute to set color and font styles.
The following example illustrates the usage of the
style="bgcolor:ADD8E6;progresscolor:6183A6;textcolor:191970"
attribute:
bodyStyle
Last updated 1/20/2012
857

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents