File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Browse Button Value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Browse Button Value" Watch "Browse Button Value" New topic
Author

Browse Button Value

m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
Hi All,
Does anyone know if it is possible to populate a browse button with a value? I have tried "value=" but it doesn't seem to do anything. Thanks!
Melissa
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

What is a "browse button"?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
In this case to browse a file directory and choose a file

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
If you are talking about a "file" input element, you can not set the value. Reason is how would you like someone changing it and uploading your email, backups, operating system files, porn videos, etc.

Eric
m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
I was afraid you might say that...so even if I just wanted to display the name of a file saved previously ie., abc.doc it won't let me do it? I guess I will just have to display the name of the previous file on the line above. Thanks!
M.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Moved to HTML/Javascript.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Browse Button Value
 
Similar Threads
Non editable text box
Renamae browse button of inputFile
File dialog to display server file system
how to browse only folder
how to delete multiple browse