Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Open a folder from a html page?

Reply
Thread Tools

Open a folder from a html page?

 
 
baiaz
Guest
Posts: n/a
 
      11-10-2006
Hi

I am wondering how I can open a folder from a HTML page?

The page is an INTERN html page at work and instead of linking every
document in that folder I only want people to click on a link and then
the folder will be open!

 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      11-10-2006

baiaz wrote:

> I am wondering how I can open a folder from a HTML page?


On the server or on the user's machine ?

If it's on the server, then set up a link in your HTML like this

<p>This week's files are in the <a href="/ourfiles/weekly/" >weekly
files</a> directory</p>

Then configure your server so that:
* There's no default HTML index page in there
* The server can give you a directory listing (most already can)
* The "allow browse access to directories" security option on the
server is configured to allow this.

 
Reply With Quote
 
 
 
 
baiaz
Guest
Posts: n/a
 
      11-10-2006
Yea.. the folder is on the same server as the page... BUT there is
something else also....

The thing is that I am using WORD - to make this page.. but maybe I
have to put the page into dreamweaver and code it?

Morten
Andy Dingley skrev:
> baiaz wrote:
>
> > I am wondering how I can open a folder from a HTML page?

>
> On the server or on the user's machine ?
>
> If it's on the server, then set up a link in your HTML like this
>
> <p>This week's files are in the <a href="/ourfiles/weekly/" >weekly
> files</a> directory</p>
>
> Then configure your server so that:
> * There's no default HTML index page in there
> * The server can give you a directory listing (most already can)
> * The "allow browse access to directories" security option on the
> server is configured to allow this.


 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      11-10-2006
baiaz wrote:
> Yea.. the folder is on the same server as the page... BUT there is
> something else also....
>
> The thing is that I am using WORD - to make this page..


Ugh! No do not use Word, use Word for your office documents, not to make
web pages

> but maybe I
> have to put the page into dreamweaver and code it?


Well, but with the sounds of your skill level, Dreamweaver will probably
not produce a page much better. NVu or another editor like it would
produce a page with better markup, but as Andy stated you can create a
link to a folder, but your server *must* be configured to allow indexes.
Most modern setups of webservers have indexes off by default for
security reasons, you will have to refer to your system admin or hosting
company documentation. If indexes are off you cannot list a folders
contents with a simple link to that folder. You will either have to
allow indexes with a special configuration file (.htaccess on Apache),
or have a server-side script that builds an index webpage. Otherwise
your only other option is to build a static page and manually list all
the files within the folder

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Andy Dingley
Guest
Posts: n/a
 
      11-10-2006

baiaz wrote:

> The thing is that I am using WORD - to make this page..


Better stop that, or you'll go blind.

You don't need to "make a page". The "page" we're discussing here is
made for you automatically by the webserver each time someone tries to
look at the directory contents (web servers are helpful that way,
although it's just a pretty crude and simple page).

There's also a page that tells your users the link to this
folder-viewing page. You need to add that to your existing pages, but
I'm sure even Word will let you paste a hyperlink into it, with your
choice of target URL.

....but stop "writing" "HTML" with Word. It truly is a foul way to be
doing it.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: how to open a file in some application using Tkinter i am usingTKINTER to create GUI application i want to know how to open a worddocument in open office or any other applicatio Fredrik Lundh Python 1 01-09-2008 10:40 AM
window.open(URL) only can open a html page, but not posting form data? Matt Javascript 1 08-22-2004 09:51 PM
For share a folder in the network , but the folder only allow by password holder MCSE 55 04-14-2004 11:56 PM
_vti_cnf folder in the bin folder-- a problem? William LaMartin ASP .Net 1 11-10-2003 03:41 AM
help: setting web folder as application folder in server THY ASP .Net 3 10-16-2003 01:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57