Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

In WebWorks app that uses jQueryMobile, gets SECURITY_ERR in writing file if navigated to a different page #281

rwmtse opened this Issue Oct 1, 2012 · 2 comments


None yet
3 participants

rwmtse commented Oct 1, 2012

This issue originates from this forum thread:

The developer reported seeing SECURITY_ERR when he writes a file to the shared documents folder using HTML5 file api. He has correctly unsandboxed the file system prior to writing.

The problem cannot be reproduced in other apps, even if I tried the exact same code that he uses to write the file.

He finally narrowed down the problem:

I'm using jquery mobile, and all of my pages are in one index.html file. To change a page I use $.mobile.changePage("#pageID")
Whenever I use this to navigate away from the home page, the error occurs when I try to save. However, if I try to save straight from the home page, there aren't any problems. I also get the same error "SECURITY_ERR" when I try to read from anywhere other than the home page. A little work around that worked for me was to put the page that I'm saving from at the top of my index.html file and force it to change the page at startup to the correct home page. This isn't a good enough solution though, since then can't read because I read from another page.


nukulb commented Oct 1, 2012

over to @JsonScott

miloszz commented Dec 11, 2012

I'm facing the same problem - getting SECURITY_ERR when trying to access filesystem from view other than main index.html.

Is there a chance that accessing filesystem from another view will be permited? Or I have to use hacks that will kill MVC approach if work at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment