JavaScript variables exist on he client side, CF variables exist on 
the server side.

The usual way you pass information from the client to the server is 
via form fields or URL parameters.

So, you must first place the JavaScript-generated values into form 
variables or a URL variables with associated names.

Then, when you submit the form or "link" the URL the variabkes are 
passed as Name/Value pairs.

When your CF routine is invoked, the Name/value pairs are available as either

   form.variablename

     or

   URL.variablename

     or

   variablename


where variablename is the name of the field in the form or in the URL

HTH

Dick






At 11:17 PM -0800 2/2/01, Michael Gribbin wrote:
>How do I get variables generated by JavaScript to be recognized by
>ColdFusion? I would like to do different things based on JavaScript results.
>When ever I try to put a JavaScript variable into a CFSET or CFIF I get an
>error that says "ColdFusion was unable to determine the value of the
>parameter".
>
>Thanks for any help.
>
>Michael Gribbin

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to