Re: [WebODF] getting started help
Hi, I'm replying to news75 and Michiel. I ran into the same problem as news75. Here's the problem: if I do, odfcanvas.load("questions.odt") then I get a "Not well formed" error when it tries to load. If I do odfcanvas.load("file:///home/josh/Documents/questions.odt") then I get a domain restriction error. These errors appear in the Javascript console of Firefox when I have it enabled. Chromium behaves in the same way. Any ideas? Thanks! -JK
So I found a solution. I dropped all of the files into /var/www/html and
fired up apache... and presto, everything worked! I think this problem has
to do with browser security and local files.
On Sat, Nov 23, 2013 at 2:31 PM, Joshua Kramer
Hi,
I'm replying to news75 and Michiel. I ran into the same problem as news75.
Here's the problem: if I do, odfcanvas.load("questions.odt") then I get a "Not well formed" error when it tries to load.
If I do odfcanvas.load("file:///home/josh/Documents/questions.odt") then I get a domain restriction error.
These errors appear in the Javascript console of Firefox when I have it enabled. Chromium behaves in the same way.
Any ideas?
Thanks! -JK
On 11/23/13 20:43, Joshua Kramer wrote:
So I found a solution. I dropped all of the files into /var/www/html and fired up apache... and presto, everything worked! I think this problem has to do with browser security and local files.
That's exactly right, Joshua. Browsers do not generally allow XMLHttpRequests to file:// urls. Cheers, Jos
participants (2)
-
Jos van den Oever
-
Joshua Kramer