Improve company productivity with a Business Account.Sign Up


Read a client side directory

Posted on 1998-10-09
Medium Priority
Last Modified: 2008-03-17
Is it possible to read a client side directory which contains some graphics files and then display them on
the browser? The directory will be selected by the client.
If Javascript can't do it, what about
using Java? Anyone can help me as I almost know nothing
on Java.

Thank you very much!
Question by:ikiem
  • 2

Accepted Solution

jamestthomas earned 20 total points
ID: 1272038
You would have to use an ActiveX control to communicate with the client in that manner.
LVL 11

Expert Comment

ID: 1272039
Maybe this would work:

<TITLE>Local Browse
<FORM method="post" enctype="multipart/form-data" action="your_action">
        <B>Local File Select</B><BR>
        <P>To open a local file, perform the following:
        <LI>Press the <B>Browse</B> button.
        <LI>Navigate to the file you wish to open.
        <LI>Once the file is selected, press the <B>Open</B> button.
        <INPUT type="file" size="22" name="local_file"><BR>
        <INPUT type="submit" value="Open"></FONT><BR>

Then all you need is a javascript function that would take the information contained and turn it into an href.  I would try it tonight, but I am getting ready to go to D.C. for a week, and really don't have the time tonight.  If someone else can help - fine.
LVL 11

Expert Comment

ID: 1272040

action="your_action" should probably be something like onSubmit="your_function"

LVL 75

Expert Comment

by:Michel Plungjan
ID: 1272041
If the html to display the file is loaded from harddisk, the javascript may access the directory listing otherwise it may only do that in a signed script in Netscape


Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

585 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question