This is probably a very simple question so please forgive my ignorance, but can a Web SQL database be read across pages of the same domain?
For example if I insert data on page mydomain.com/createdata can the same data be queried on mydomain.com/readdata ?
Thanks in advance!
-
wrt. subdomains, see: stackoverflow.com/questions/4177803/…user166390– user1663902012年06月20日 23:18:51 +00:00Commented Jun 20, 2012 at 23:18
-
(Also, I think IndexedDB is the "endorsed" W3C model... so browser support on Web SQL may be less complete going forward?)user166390– user1663902012年06月20日 23:21:04 +00:00Commented Jun 20, 2012 at 23:21
2 Answers 2
It's local browser storage then no problem to read this form any page of the same domain. It is designed especially for it. The problem appear when you need to share Web SQL database across different domains, in this case you should deal with Same Origin Policy
1 Comment
Yes. Within the same domain is no problem. I believe there is a 5MB limitation on the storage capacity per domain.
For examples and reference code, check html5Rocks - Storage