Have you created the form element in HTML as well as setting
its value in Javascript?
-----Original Message-----
From: Richard Kern [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 15, 2000 3:11 PM
To: [EMAIL PROTECTED]
Subject: JS to CF variable
I have a #url.path# variable that is dynamically populated. At the end of
the users selection I need to pass that value to a CFFILE tag as a
destination directory. Given that this occurs on the page before being
passed to the server, JS makes sense here to collect it on the first page
and convert it to a form variable.
I have tried the following to no avail and would appreciate some insight as
to how to do it.
Thanks
Richard Kern
----------
<SCRIPT LANGUAGE="JavaScript"
TYPE="text/javascript">
<!--
function set_path()
{document.forms[0].dir.value = "#url.path#"}
//-->
</SCRIPT>
called at
<INPUT TYPE="submit"
NAME="Submit"
VALUE="Press to upload"
onsubmit="set_path();">
2nd page - this produces no output
<CFOUTPUT>
#FORM.DIR#
------
</CFOUTPUT>
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
**********************************************************************
Information in this email is confidential and may be privileged.
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system.
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone.
Thank you for your co-operation.
**********************************************************************
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.