Javascript = client side
coldfusion = server side
So you have to be... inventive...
http://www.vboston.com/DepressedPress/Content/ColdFusion/Essays/GIFAsPipe/In
dex.cfm
> -----Original Message-----
> From: Bruce, Rodney [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 11, 2001 5:07 PM
> To: CF-Talk
> Subject: JavaScript use with ColdFusion Variables
>
>
> Is there a way to directly set a CF Variable from javascript?
>
> Examples:
>
> This is a build in script with CF Studio which will display
> to screen, but
> does not assign the value to anything:
>
> <script language="JavaScript" type="text/javascript">
> <!--
> document.write("You are using " + navigator.appName + " " +
> navigator.appVersion);
> // -->
> </script>
>
> This is a script that will assign to a form text field, then
> the form has to
> be submitted to an action page for value to be used:
>
> <script language="JavaScript" type="text/javascript">
> document.formname.fieldname.value = (navigator.appName +' ' +
> navigator.appVersion);
> </script>
>
> Is there a way to assign the value to a variable for use on
> the same page,
> outside of the <script> tag?
>
>
> Thanks for your help
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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