Thanks for the responses, everyone!

Rick

-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 3:54 PM
To: CF-Talk
Subject: Re: How do I set this variable, then...

Well.... can can cause coldfusion to set javascript variables based on
coldfusion variables....

<cfset foo = structNew()>
<cfset foo.bar1 = 1>
<cfset foo.bar2 = 2>
<cfset foo.bar3 = 3>
<script language="javascript">
<cfwddx action="CFML2JS" input="#foo#" toplevelvariable="foo">
alert(foo["bar1"]);
</script>

but the only way coldfusion will ever know what's in a javascript
variable is via some kind of http request (like an AJAX call)

And that won't occur until after the page has been completely
processed by coldfusion.

rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275965
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to