Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display a message box inside of <cfif> block

Status
Not open for further replies.

goatboy

Programmer
Aug 9, 2000
9
US
Can anyone show me an example of displaying a JavaScript alert message from inside of a <cfif> conditional statement.
Generally this is what I am trying to do:
<CFIF verifyStudent.RecordCount GT 0>
DISPLAY A ALERT BOX TO THE USER (OK ONLY)
<CFLOCATION................>
<CFELSE>
<CFLOCATION......................>
</CFIF>

Any assistance would be appreciated.
Thanks
 
<cfif your evaluation>
<script>
alert('youe have done something');
</script>
</cfif>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top