Linking remote files
Please support our IT Professionals' Lounge advertiser: Programming Forums
Thread Solved
![]() |
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.
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.
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
- Benjamin Franklin
![]() |
Similar Threads
Other Threads in the IT Professionals' Lounge Forum
- Popups (PHP)
- Please check this log to see if I'm clean (Viruses, Spyware and other Nasties)
- Hijackthis report, I just don't know (Viruses, Spyware and other Nasties)
- spyware sucks (Viruses, Spyware and other Nasties)
- For Mattis: Hijackthis log (Help please!) (Viruses, Spyware and other Nasties)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: I can't get rid of Quick Time
- Next Thread: PGP Security Features?
•
•
•
•
Views: 431 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode