Solved

hyperlink to a folder on web server

Posted on 2011-09-20
4
234 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 33

Accepted Solution

by:
paulmacd 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 33

Expert Comment

by:paulmacd
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now