> 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
Not at all. You can't use a string in Javascript without surrounding
it in quotes. Otherwise js considers it a variable. If you don't
want to <cfoutput> each variable used in your javascript, you can
always surround the entire <script> block with cfoutput tags.
- Jon
On Sep 25, 2006, at 12:55 PM, Richard White wrote:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:254061
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4