You cannot set a coldfusion variable on the client side as you did below.
 You can set javascript variables to the value of cf variables that have 
already been set.

<cfset doit = "Are you sure you want to delete?">

<cfoutput>
<script>
var didit = confirm("#doit#");
</script>
</cfoutput>



Jeremy Bunton wrote:

>I want to set a javascript var to a coldfusion variable, what I am doing
>looks like below. The value being a true false Boolean. I keep getting an
>error that doit is undefined in CF. I've gone from coldfusion to JS before,
>but not the other way around. Thanks
>
>Jeremy
>
><script>
>var doit = confirm("Are you sure you want to delete?");
><cfset didit = doit>
>
></script>
>
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206059
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to