Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Read a client side directory

Posted on 1998-10-09
4
Medium Priority
?
232 Views
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!
0
Comment
Question by:ikiem
  • 2
4 Comments
 
LVL 2

Accepted Solution

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

Expert Comment

by:kmartin7
ID: 1272039
Maybe this would work:

<HTML>
<HEAD>
<TITLE>Local Browse
</TITLE>
</HEAD>
<BODY>
<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:
        <OL>
        <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.
        </OL>
        </FONT>
        <INPUT type="file" size="22" name="local_file"><BR>
        <INPUT type="submit" value="Open"></FONT><BR>
        </FORM>
</BODY>
</HTML>

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.
0
 
LVL 11

Expert Comment

by:kmartin7
ID: 1272040
oops!

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

Sorry
0
 
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

Michel
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…
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…
Suggested Courses

963 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