Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
| Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 3rd, 2006, 11:16 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default How Do I Set Value For File Field

hi friends,
i want to set a value for file field, please help me.

I am talking about VALUE operator. I have set value to file as
<input type="file" name="file_name" value="C:/file.pdf">

When I open same file in browser, it has to diplay value 'C:/file.pdf' in file input box but it is not displaying value.



surendran
(Anything is Possible)
__________________
surendran
(Anything is Possible)
http://www.suren.info
http://ssuren.spaces.msn.com
  #2 (permalink)  
Old April 4th, 2006, 12:47 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi Surendran!!
you can not set the value of input type=file values
offcourse you can get the value after clicking on the browse button then by
document.form.file_name.value
for more info plz visit point{323}
http://www.oreilly.com/catalog/dhtml...ef.unconfirmed

hope this will help you

Cheers :)

vinod


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set memo field text format via VBA dlipkie Access 1 September 25th, 2008 06:54 AM
Set focus on a particular field after server side vinodonline2000 ASP.NET 2.0 Basics 1 March 6th, 2008 09:15 AM
How to code to set 'Visible' a field value cJeffreywang ASP.NET 2.0 Basics 1 February 28th, 2008 11:51 PM
How to set hidden field value AFTER page reloads savoym Javascript How-To 5 June 13th, 2007 10:13 AM
Set Focus to Field in User Control Ron Howerton ASP.NET 1.0 and 1.1 Professional 3 March 14th, 2006 05:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.