Problem:
User has N browsers installed. As an application I want to store a data shared between all installed browsers.
Requirements:
- Support IE9
Possible solution for now: WebSQL using polyfill.
Any another suggestions?
Problem:
User has N browsers installed. As an application I want to store a data shared between all installed browsers.
Requirements:
Possible solution for now: WebSQL using polyfill.
Any another suggestions?
With HTML5 and some of the new JS APIs, there might be a few options.
The newish File API supports everything but IE9. As discussed in this question, you can fill in IE9 support using ActiveX or Java, which ought to do the trick. Because of the sandboxing, this may not immediately allow the browsers to completely interoperate.
If taking user input is an option, I would suggest having the user select and load their preferences file when the app loads. By opening a native file browse dialog, you allow the user to select whatever file they desire, and can use the file API to load the contents and process them.
You can use a similar technique for saving the data, either saving to the file sandbox or opening a specially-formed link (the download
attribute) to indicate the browser should save a file. Again, you'll run into IE9 issues that will require ActiveX or Java to fill in.
You can see an example of reading a file from an <input type="file">
, which is likely your best option. There are also multiple libraries for file upload (note, I have not personally used any of these).