#student_name# is a coldfusion (server) code, so it needs the coldfusion
outputs around it.
alert() is the javascript it is client side. Since you are using the two
together, you either need to wrap the variable (student_name) with
<cfoutput> or you can wrap the entire alert with <cfoutput>
<cfoutput>alert("#student.name#");</cfoutput>
Either way will work
Sandra Clark
==============================
http://www.shayna.com
Training in Cascading Style Sheets and Accessibility
-----Original Message-----
From: Richard White [mailto:[EMAIL PROTECTED]
Sent: Monday, September 25, 2006 12:55 PM
To: CF-Talk
Subject: Re: Javascript vs. cfscript
the only way i can make it actually display an alert within javascript is if
i do the following code:
alert("<cfoutput>#student.name#</cfoutput>");
if i do the following it doesnt work:
alert(#student.name#);
am i doing something wrong
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254063
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4