There is a misunderstanding about how the coldfusion works with JavaScript, I think.
On the server, the coldfusion is translated to pure HTML and Javascript (or any language that is 'client side'). Once the page is delivered to the browser, there is no coldfusion left on the page. This means that when javascript runs on the client, there is no way to interact with coldfusion, without sending information back to the server first. if you let us know what you are trying to accomplish, maybe we can suggest some alternative methods? Thanks, William ---------- William E. Seiter On Feb 5, 2010, Keith McGee <kpmc...@frontiernet.net> wrote: 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:330433 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4