473,387 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

File Chooser...

Ryo
Hello !

I want to do a button on a page that propose to choose a file (on the client
side) and get the path of the file.
I know that there are the HTMLInputFile and the FileUpload control, but I
don't want that the user can see the location of the file in a textbox.
A solution ?
Thanks.
Nov 19 '05 #1
2 4016
Security in IE prevents you from doing almost anything to a "file" type input
control. The best I could come up with was putting this style on it:

style="width:1; BORDER-RIGHT: white thin solid; BORDER-TOP: white thin
solid; BORDER-LEFT: white thin solid; COLOR: white; BORDER-BOTTOM: white thin
solid; BACKGROUND-COLOR: white"

This does what you say, and the user can't see the text or the textbox. It
makes the button look a little weird though. And no, you can't hide the file
control and use another button to "script click" it. I tried. =) IE security
prevents it.
"Ryo" wrote:
Hello !

I want to do a button on a page that propose to choose a file (on the client
side) and get the path of the file.
I know that there are the HTMLInputFile and the FileUpload control, but I
don't want that the user can see the location of the file in a textbox.
A solution ?
Thanks.

Nov 19 '05 #2
You can hide the html input file in IE. All you need to do is put it inside
a DIV tag. I saw this example somewhere else on these newsgroups.

Eg.
<div style="VISIBILITY: hidden; WIDTH: 0px; HEIGHT: 0px"><INPUT
id="fileBrowse" type="file"></div>
Dec 2 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Hal Vaughan | last post by:
I've looked through a few books and various web sites. I'm still not clear on this and would like to make sure I have this right. I would like to use an applet in a web page. When the user...
2
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home...
0
by: jasonjho | last post by:
Does tkinter have a dialog chooser for supporting both file and directory selections? I can only seem to find ask* methods that provide function for each, and not both. Thanks, J
1
by: liberty | last post by:
Hello... To make a color chooser (like in photoshop, for example), how its possible?? Do you have a clue? Liberty ..
0
by: Søren M. Olesen | last post by:
Hi I'm looking for a webdate chooser control like the one from Infragistics, but with support for displaying weeknos....anyone who know of such a control TIA Søren
3
by: connect2sathya | last post by:
Hi friends, Please help me in creating font chooser component
4
JCEtajin
by: JCEtajin | last post by:
somebody can check this code for me...i getting error...it said file not found JFileChooser chooser = new JFileChooser(); chooser.setDialogTitle("Select File To Open"); ...
1
by: kiransasi | last post by:
Hi All, <input type = "file"> opens up a File Chooser on clicking on the Browse button, in that file chooser, the top title of it will be "Choose File" for IE and "File Upload" for Mozilla. I want...
3
by: Luyolo | last post by:
Hi guys, will someone help me on implementing the Directory chooser using C# in visual studio 2005. Help ASAP..
3
by: Akino877 | last post by:
Hello, I am trying to user a File Chooser with DIRECTORIES_ONLY set. And I would like to be able to hide the "Files of type" label and the associated combo box. I wonder if there is a way to do...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.