ColdFusion.MessageBox.show

Description

Used to display a ColdFusion message box.

Function syntax

ColdFusion.MessageBox.show(name)

See also

ColdFusion.MessageBox.isMessageBoxDefinedColdFusion.MessageBox.getMessageBoxObject

ColdFusion.MessageBox.updateColdFusion.MessageBox.updateMessageColdFusion.MessageBox.updateTitle

ColdFusion.MessageBox.create

History

ColdFusion 9: Added this function

Parameters

Parameter

Description

name

Name of the message box that you want to display.

Returns

This function does not return a value.

Usage

You can create a messagebox using the cfmessagebox tag or the JavaScript function ColdFusion.MessageBox.create. But to show it, you must use this function.

Example

<cfajaximport tags="cfmessagebox,cfform">
<cfform name="ajax">
<br><input type="button" name="showMessageBox" value="Show Message Box" onClick="ColdFusion.MessageBox.create('mb','Alert','ALERT','Sample Alert!');ColdFusion.MessageBox.show('mb');">
</cfform>

 

Get help faster and easier

New user?