RSS Forums RSS

Linking remote files

Please support our IT Professionals' Lounge advertiser: Programming Forums
Thread Solved
Reply
Posts: 644
Reputation: sillyboy is on a distinguished road 
Solved Threads: 54
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Linking remote files

  #1  
Nov 18th, 2008
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.
AddThis Social Bookmark Button
Reply With Quote  
Posts: 579
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 121
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: Linking remote files

  #2  
Nov 19th, 2008
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
Lost time is never found again.
- Benjamin Franklin
Reply With Quote  
Posts: 644
Reputation: sillyboy is on a distinguished road 
Solved Threads: 54
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: Linking remote files

  #3  
Nov 19th, 2008
Thanks for the reply, seems I don't really need to solve this for the moment (sorry!), I'll just mark as solved.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the IT Professionals' Lounge Forum
Views: 431 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:52 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC