0

I am making a mobile phone app and I use a client-side database provided by HTML5 to store information. It works great in all browsers except IE. I know IE has some issues with HTML5 but is there a way to make IE use a client-side database?

Thanks

ewein
  • 2,695
  • 6
  • 36
  • 54
  • What storage method are you using? LocalStorage? HTML5 databases? – Rob W May 07 '12 at 16:27
  • Local Storage and using SQL to access the data. But it is a client-side database which is a feature of HTML5. – ewein May 07 '12 at 16:31
  • These are different APIs. [`localStorage` is supported pretty well, and support can even be extended to cover IE5](http://stackoverflow.com/a/10413907/938089?are-cookies-fit-for-just-client-side-usage). SQL cannot be used to query `localStorage` data. If you meant [WebSQL](http://www.w3.org/TR/webdatabase/), note that the API has been deprecated. – Rob W May 07 '12 at 16:35
  • Yes I meant WebSQL, is there no way to do this in IE then? – ewein May 07 '12 at 16:41
  • 1
    [Polyfills](https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills) exist. They do not fully emulate WebSQL though (afaik). They merely add a wrapper to provide a consistent cross-browser query language. For example http://code.google.com/p/sqljs/ and http://code.google.com/p/dom-storage-query-language/. – Rob W May 07 '12 at 16:46
  • I found that the best approach is to use cookies. – ewein Aug 31 '12 at 15:16

0 Answers0