Now I've put the exact same file into my apache docroot directory, and try to access it via "http://localhost:8080/Test.html". At first this didn't work in FF, because as I found out FF blocks "file://" requests that access the local file system when a page is loaded via http. There is a solution to that problem (you can set which websites are allowed). So I can display the file fine in FF.
In IE, the html file is found and I see it in the browser. But I get the error "Invalid character in jsfile.js line 1/char 1" (or similar) and another, stating that the function in the file is undefined. I googled and found that this means the file is not found (this is all IE8 btw). I tried to enable the scripting options for the local intranet zone, but that didn't help. Does anyone of you know which setting I can change so I can load the file correctly in IE too (if possible, not only IE8 but also earlier versions)?
For security reasons browsers can not access files on the local computer system when the page is serverd from http. You can change your browser security settings to allow it, but that might not be wise.
Joined: Feb 02, 2009
Eric Pascarello wrote:For security reasons browsers can not access files on the local computer system when the page is serverd from http. You can change your browser security settings to allow it, but that might not be wise.
I thought it was a security problem (as I said, in Firefox you can explicitely set sites which should be allowed access), but HOW can I set this in IE? I tried to enable all the scripting related options in the internet options, but it still does not work.
Unfortunately I wasn't around when this web app was developed originally. My collegue says they did something similar back then so he could work in this fashion, but he can't recall how it was done. If there's another, better approach to this, please let me know.
Joined: Feb 02, 2009
Sometimes you just don't think of the easy way first ...
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com