This is a common "my brain is fried" question...you are mixing up the
client and server execution.
And the answer is: you can't. Javascript variables don't exist until they
run on the browser. CF variables only exist when the page is executing on
the server.
You can write your javascript from the server using CF in your javascript,
but the only way for the browser client to put something back to CF is to
submit a form (or window.locate to a page with a URL variable in it).
At 07:42 PM 3/2/01, Marsh, Jeffrey B wrote:
>My brain is fried today.
>How would I get the value of a javascript variable (integer) into a CF
>variable (attributes.variable)?
>Thanks.
>--Jeffrey
>****************************************************************************
>This message is intended for the sole use of the individual and entity to
>which it is addressed, and may contain information that is privileged,
>confidential and exempt from disclosure under applicable law. If you are
>not the intended addressee, nor authorized to receive for the intended
>addressee, you are hereby notified that you may not use, copy, disclose or
>distribute to anyone the message or any information contained in the
>message. If you have received this message in error, please immediately
>advise the sender by reply email and delete the message. Thank you very
>much.
>****************************************************************************
>****************************************************************************
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists