DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   IT Professionals' Lounge (http://www.daniweb.com/forums/forum5.html)
-   -   Linking remote files (http://www.daniweb.com/forums/thread158158.html)

sillyboy Nov 18th, 2008 7:46 pm
Linking remote files
 
Hey guys,

I'm having some cross-browser issues when linking remote files. I am only really concerned with IE / firefox, where IE like something like href="file://" and firefox likes href="file://///". Anyway, using either of these makes the link work in either of the browsers, which isn't really ideal.

This isn't a major worry, and I'll probably just stick with the firefox alternative, but does anybody know if there is a "correct" way to do this or a workaround?

Thank you.

buddylee17 Nov 19th, 2008 1:02 pm
Re: Linking remote files
 
You could use JavaScript to detect the user agent then write a link prefix variable for each link. A much better solution would be to install a testing server (WAMP, XAMPP, IIS) on your machine. This way you can access your site by typing http://localhost into the url instead of file:///C:/Documents%20and%20Setting...ents/index.htm

sillyboy Nov 19th, 2008 6:33 pm
Re: Linking remote files
 
Thanks for the reply, seems I don't really need to solve this for the moment (sorry!), I'll just mark as solved.


All times are GMT -4. The time now is 10:53 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC