Possible Duplicate:
Firefox Links to local or network pages do not work
Hi all,
I would like to know how can i offer users that connected in my web site (in JAVA - JSP pages) to show the contents of files in THEIR PC over Web browser.
More precisely, i want to have a button, on what when user click, it open a new TAB or new window (of the browser) with path like : file:///home/user...
I did try with my flowing snippet of codes:
<script type="text/javascript">
[...]
window.open("file:///home/user...");
[...]
</script>
this works fine when i open my html file manually with Firefox, but when i try to load it in a application server (Java EE), it doesn't work at all. I get this kind of message in my error console (of firefox):
Security Error: Content at http://localhost:8080/MyProject/test.jsp may not load
or link to file:///home/user.
It seems to be a problem related to the security policies of Firefox, still i didn't found any issues to resolve my problem ...
Do you have any ideas about this?