how do you create a message box in <cfscript>, I need a yes no msgbox and then I have to create a cookie array with the result. I can't seem to find it on the web or books.
ColdFusion does not create message boxes, only javascript does. The only way to create a msg box in cfscript would be to use WriteOuput to output javascript to the page.
Something like:
=== START CODE EXAMPLE === <cfscript>
WriteOutput('
<script language="JavaScript">
<!--
doyou = confirm("Do you like the ColdFusion? (OK = Yes Cancel = No)" //Your question.
if (doyou == true)
alert("Me Too!" //If your question is answered Yes.
else if (doyou == false)
alert("*Sniff* *Sniff* Too Bad!" //If your question is answered No.
Thanks that works great. Do you know a way to make the confirm "yes,No" or any other msgbox I can use? I know how to do it in vbscript but this client gets a large number of users so I can't cut out netscape : (.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.