Also on the same page:

"Internet Explorer, Netscape and Opera do not use the VALUE attribute as
the default contents of the input area. Any default value set via HTML
is not usable via scripting and the DOM as well (hence it is not listed
as 'supported' in any of the browsers.) If a user enters text in the
field however, that value is then reachable via the DOM as it normally
would be for a normal INPUT field (via the .value property.) The reason
for this behavior would presumably be to ensure the security/safety of
users against malicious authors"

HTH

Kola

>> -----Original Message-----
>> From: Will Swain [mailto:[EMAIL PROTECTED]]
>> Sent: 02 January 2003 16:21
>> To: CF-Talk
>> Subject: RE: Pre-populating a "file" form field
>> 
>> but according to this
>> (http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm) it
does
>> have a value attribute, and also a readonly attribute.
>> 
>> will
>> 
>> -----Original Message-----
>> From: Boardwine, David L. [mailto:[EMAIL PROTECTED]]
>> Sent: 02 January 2003 16:07
>> To: CF-Talk
>> Subject: RE: Pre-populating a "file" form field
>> 
>> 
>> The problem is the INPUT TYPE="File" has no value attribute.
Therefore
>> there
>> is no way to re-populate it.
>> 
>> DavidB
>> 
>> -----Original Message-----
>> From: Gyrus [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, January 02, 2003 10:58 AM
>> To: CF-Talk
>> Subject: Re: Pre-populating a "file" form field
>> 
>> 
>> ----- Original Message -----
>> > One of the fields is a "file" field however.  When I try to "pre-
>> populate"
>> > that field with the original user choice, it fails.  I'm sure this
is
>> > because of the special nature of the file field, and I've told my
>> client
>> > that I do not believe it can be done.  Does anyone know of a trick
to
>> > re-fill the file field with the users original choice?
>> ---------------------------
>> 
>> I've never had a client complain about this, ergo I've never thought
>> about
>> it before ;-)  But yeah, I've noticed it in passing, and thinking
about
>> it
>> now, the only thing that comes to mind is:
>> 
>> - onsubmit, copy the file field's value into a hidden field with JS
>> - Use this hidden field to re-populate the file field
>> 
>> Haven't tried it, but can't see why it wouldn't work.
>> 
>> Gyrus
>> [EMAIL PROTECTED]
>> work: http://www.tengai.co.uk
>> play: http://norlonto.net
>> PGP key available
>> 
>> 
>> 
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to