Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create CF Session Variable in Javascript?

Status
Not open for further replies.

scripter73

Programmer
Joined
Apr 18, 2001
Messages
421
Location
US
Does anyone know of a way to set a CF variable within Javascript?

Basically I have a Javascript form validation procedure that returns true to my form if everything validated ok.

I also want to set a CF variable in that same program when its validated ok, and I want to be able to use that CF var later.

Please help and thanks in advance,
scripter73
 
I don't think you can do that - unless you use javascript to populate a form variable via javascript and use that to set on the next page.

i.e -
..if everything validated OK in javascript..

formname.fieldname.value = 'goodvalidation';

Then in your code
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;fieldname&quot;>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top