Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2004, 03:16 PM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default file protocol and non-IE browsers

Does anyone have a good work around for using file protocol in an href that will work with non-IE browsers?

For example, if one uses <a href="file://///whatever">Whatever</a> IE correctly locates and displays the local/network directory called "whatever". Mozzilla, Firefox and Opera don't seem to do anything. However, if you paste the file ref into the address bar of moz/firefox it correctly displays the resource; you can even bookmark it. But you can't use href?

Any thoughts would be greatly appreciated.
 
Old July 19th, 2004, 07:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Mozilla and Internet explorer on Windows should both interpret the five slash syntax correctly, Opera will want two slashes, as in:

<a href="file://remote_server/directory/">

Opera also swaps in a '/localhost/' whenever browsing the local machine's directory structure.

be aware that what behaviour you actually get will depend very heavily on your local machine settings, as well, though.

Dan





Similar Threads
Thread Thread Starter Forum Replies Last Post
in browsers (such as IE) how can emulate a button abdollahzadeh.b C# 2005 3 August 6th, 2007 05:50 PM
positioning reliably across browsers Boszky PHP How-To 1 January 19th, 2007 07:56 PM
xslt 2.0 in browsers ramarc XSLT 1 April 26th, 2006 11:14 AM
IIS problem in IE but not in other browsers Lynque Forum and Wrox.com Feedback 5 December 28th, 2004 09:02 PM
CHtmlView or CHtmlCtrl file:// protocol problems prt315 Visual C++ 2 November 11th, 2003 08:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.