Java script is executed on the client side. CF is executed server side. You
can't pass JS vars to CF, unless you use a form post or something. You can,
however, pass CFVARS to JS (since that's CF output).



Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be &.

Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged


-----Original Message-----
From: Keith McGee [mailto:[email protected]] 
Sent: Friday, February 05, 2010 11:40 AM
To: cf-talk
Subject: setting cf var with javascript


How do you set a CF variable with a java script variable. 

I have a script that adds three weekdays to the current day,
document.write(mydate) 

and I want to set this to a CF variable 

cfset mydate = document.write(mydate) 

any suggestions
Keith 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330432
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to