KenJackson
11-28-2009, 10:00 AM
There's something I'm trying to do, but I can't figure out how.
I have some source code and other text files in a directory on a server inside my company's firewall that I want to make visible via a web page inside the company. But I can't move the files outside of the firewall, and I can't run a web sever inside the firewall.
Currently I have links like this:
<a href="file://///server/some/directory/module.c" type="text/plain">module source</a>
The page with the links is served external to the company, but the actual text file can't be retrieved unless you are viewing it on a computer that is inside the company. I'm neatly sidestepping bothersome rules, but I believe I'm not actually violating any rule.
But it doesn't work. Actually it does work in InternetExplorer, but by default Firefox doesn't allow file links like this to load. You can alter the configuration to make it work, but I don't want to have to make people mess with their configuration just to click on the link.
Is there a way, maybe with javascript, to make this work?
I have some source code and other text files in a directory on a server inside my company's firewall that I want to make visible via a web page inside the company. But I can't move the files outside of the firewall, and I can't run a web sever inside the firewall.
Currently I have links like this:
<a href="file://///server/some/directory/module.c" type="text/plain">module source</a>
The page with the links is served external to the company, but the actual text file can't be retrieved unless you are viewing it on a computer that is inside the company. I'm neatly sidestepping bothersome rules, but I believe I'm not actually violating any rule.
But it doesn't work. Actually it does work in InternetExplorer, but by default Firefox doesn't allow file links like this to load. You can alter the configuration to make it work, but I don't want to have to make people mess with their configuration just to click on the link.
Is there a way, maybe with javascript, to make this work?