I have a particular need to an application . . .
I need users to specify a directory (with path) on their filesystem on
an HTML page. All I need at the server is a string representation of
the path they choose. No file upload. No file names.
Right now, I have users typing in full paths into an <input
type="text"/> element. I would rather a HTML control to allow
them browse to their selected directory. When they hit "OK", or
whatever, the path is stored for subsequent form submission. Then I
can have the value on the server to use.
I prefer IE solutions. I use HTML, JSP, Java, and JavaScript.
I am willing to use tag libraries, if relevant.
Thnak you for thinking about my plight.
badgerduke 4 12917
<ha******@chorus.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com... I have a particular need to an application . . .
I need users to specify a directory (with path) on their filesystem on an HTML page. Right now, I have users typing in full paths into an <input type="text"/> element. I would rather a HTML control to allow them browse to their selected directory.
<form name="formName" method="POST" action="yourcgi.(exe/php/asp/pl)">
<input type="file" name="fileName">
</form>
will allow the user to browse to a file.
document.forms['formName']['fileName'].value
will return the complete path if you want to parse it client side
When they hit "OK", or whatever, the path is stored for subsequent form submission. Then I can have the value on the server to use. All I need at the server is a string representation of the path they choose. No file upload. No file names.
I am assuming you have some kind of script in place to handle the form
data.
When the form is submitted fileName and its value will appear
on the server as one of the name/value pairs and you can parse
out whatever you need.> I prefer IE solutions. I use HTML, JSP, Java, and JavaScript. I am willing to use tag libraries, if relevant.
no need and should work in all browsers
HTH
Jimbo
Thnak you for thinking about my plight.
badgerduke
J. J. Cale wrote: <ha******@chorus.net> wrote in message news:11**********************@f14g2000cwb.googlegr oups.com... I have a particular need to an application . . .
I need users to specify a directory (with path) on their filesystem
on an HTML page. Right now, I have users typing in full paths into an <input type="text"/> element. I would rather a HTML control to allow them browse to their selected directory. <form name="formName" method="POST"
action="yourcgi.(exe/php/asp/pl)"> <input type="file" name="fileName"> </form> will allow the user to browse to a file.
document.forms['formName']['fileName'].value will return the complete path if you want to parse it client side
When they hit "OK", or whatever, the path is stored for subsequent form submission. Then
I can have the value on the server to use. All I need at the server is a string representation of the path they choose. No file upload. No file names. I am assuming you have some kind of script in place to handle the
form data. When the form is submitted fileName and its value will appear on the server as one of the name/value pairs and you can parse out whatever you need.>
I prefer IE solutions. I use HTML, JSP, Java, and JavaScript. I am willing to use tag libraries, if relevant.
no need and should work in all browsers HTH Jimbo
Thnak you for thinking about my plight.
badgerduke
Thank you for responding. The type="file" input tag requires a user
select a file. I do not want them to choose a file, just a directory.
I prefer to keep this particular input tag out of the file, since it is
misleading and is meant for uploads. I just want to be get the path of
the chosen directory to my server.
In article <11**********************@z14g2000cwz.googlegroups .com>, ha******@chorus.net wrote: The type="file" input tag requires a user select a file. I do not want them to choose a file, just a directory. I prefer to keep this particular input tag out of the file, since it is misleading and is meant for uploads. I just want to be get the path of the chosen directory to my server.
That control will not include any 'filepath' at all, just the file
chosen through it. Have visitors enter the filepath in a text control
(type="text") and have sufficient explaining added, preferrably with an
example.
So, in the end you know some filepaths. Then what?
--
Kris
<kr*******@xs4all.netherlands> (nl)
In article <11**********************@f14g2000cwb.googlegroups .com>, ha******@chorus.net enlightened us with... I need users to specify a directory (with path) on their filesystem on an HTML page. All I need at the server is a string representation of the path they choose. No file upload. No file names.
<snip>
I prefer IE solutions. I use HTML, JSP, Java, and JavaScript. I am willing to use tag libraries, if relevant. Thnak you for thinking about my plight.
IE only client-side solution using WSH see Shell.BrowseForFolder <URL: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/shell/browseforfolder.asp>
You can use that with client-side javascript, jscript, or vbscript.
--
--
~kaeli~
Humpty Dumpty was pushed! http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: hiwa |
last post by:
What would be the simplest solution for a JSP or Java servlet letting
client retrieve realtime directory listing and directory traversal on
the server like output from local ls command or content...
|
by: yotaxp |
last post by:
Hello, everyone.
I've been trying to get a popup editor going for a control I'm
working on. I don't mean a design-time editor for properties, though
that would be a good example of what I'm...
|
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...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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,...
|
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...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |