Solved

hyperlink to a folder on web server

Posted on 2011-09-20
4
237 Views
Last Modified: 2012-05-12
Hello experts

the goal is this-
I have a website with a navigation bar. One of the links on the navigation i would like to open up for the viewer the contents on a folder on the server which should reveal other folders of which a user can click into and access pdf documents. I dont know html well enough to get it working right. below is the code i attempted to use to get the effect.

<A HREF="file:///D:/school site/Devel/docs/Policy/" target="_blank">School Policies</a>
0
Comment
Question by:jonnydollar
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 36568463
That's not likely to work unless every user's D: drive points to the same server/share.  If the folder is on the web server, use a regular URL:
<A HREF="http://www.school site/Devel/docs/Policy/" target="_blank">School Policies</a>

If the folder is on a share somewhere, you can try
<A HREF="file:///servername/sharename/school site/Devel/docs/Policy/" target="_blank">School Policies</a>
but access will be predicated on the client's ability to see the server hosting the share.
0
 

Author Comment

by:jonnydollar
ID: 36568533
ok would read only permission on the share of the folder allow a user to go in see the folders inside the link, open one of them up and open a pdf doc?
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36568837
Yes, they would need read/browse permission, but not write/modify.
0
 

Author Closing Comment

by:jonnydollar
ID: 36595138
I used IIS virtual directory to get the job done
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction A frequent question goes something like this, "How can I show an introductory page to my clients on the first site visit, but not show it again on every visit?"  The answer is by using a cookie.  This article shows the design pattern f…
Foreword This article was written many years ago, in the days when PHP supported the MySQL extension (http://php.net/manual/en/function.mysql-connect.php).  Today (http://php.net/manual/en/migration70.removed-exts-sapis.php) you would not use MySQL…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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