Shall I be the first?

No.  CF is server-side... it processes first and then sends the resulting
document to the client where it can be processed by whatever client side
languages it contains.

Javascript is client-side.  It will process AFTER any ColdFusion code has
already been done with.

The only way you can have Javascript "send back" to a coldfusion process is
to use JS to either set a value into a form and then process that form via
coldfusion, or use a hidden frame of some sort.   

To put it ultra simply, that hidden frame process with CF and the resulting
hidden document can refresh the visible one (causeing a page reload), or can
just sit, holding information in some way that the JS on the visible doc can
access (like form fields).

|-----Original Message-----
|From: Ethan Rosch [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, March 28, 2001 7:11 PM
|To: CF-Talk
|Subject: javascript to set cfvariable?
|
|
|can I use javacript to set a cfvariable?
|
|eg.
|
|onChange='<CFSET var=1>'
|
|
|
|thanks in advance...
|
|e
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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