PDA

View Full Version : browsing the files


phani
08-13-2002, 06:10 AM
Is there any option to open a window that could browse the files in the computer(i.e, open window,save window etc) similarly as we see in windows in javascript or java

Skyzyx
08-13-2002, 06:43 AM
It would only work with Windows, but you can link to:

file:///c:/

... to see your C: Drive...

file:///c:/windows
-or-
file:///c:/winnt

... to see your Windows or WinNT folders, etc.

phani
08-13-2002, 07:03 AM
is it in javascript or java. can u please send me an example

Skyzyx
08-13-2002, 07:13 AM
I don't know Java. Java has absolutely nothing to do with JavaScript other than they share a similar name. This particular forum is only for JavaScript.

Besides that, all you need is basic HTML.

Like I said, this only works under Windows with Internet Explorer (because Microsoft designed it that way), so understanding that, I'll explain.

Here is a basic, BASIC example:

<html>
<body>
<a href="file:///c:/">Click to view your hard drive</a>
</body>
</html>

Keep in mind that this will not let you see anyone elses hard drive, it will only allow each person to see their own hard drive.

Hopefully, this helps. =)

PauletteB
08-13-2002, 07:34 AM
or with a button

<HTML>
<HEAD>
</HEAD>
<BODY>
<form><input type="file" size="30"></form>
</BODY>
</HTML>

phani
08-13-2002, 09:38 AM
ok i got it. its just displaying the path of the file in the textbox. can't we open the specified file Mr. pauletteB.

PauletteB
08-13-2002, 07:01 PM
Right click for your context menu...