Skip to content

Instantly share code, notes, and snippets.

@cmcavoy
Created February 4, 2010 16:07
Show Gist options
  • Save cmcavoy/294799 to your computer and use it in GitHub Desktop.
Save cmcavoy/294799 to your computer and use it in GitHub Desktop.
Here's my import order (not sure if it matters):
<script src="./lib/Lawnchair.js"></script>
<script src="./lib/LawnchairAdaptorHelper.js"></script>
<script src="./lib/adaptors/DOMStorageAdaptor.js"></script>
And here's the output when I try it in Firebug on FF 3.6:
>>> var people = new Lawnchair('people');
ReferenceError: WebkitSQLiteAdaptor is not defined { message="WebkitSQLiteAdaptor is not defined", more...}
When I add WebkitSQLiteAdaptor:
>>> var people = new Lawnchair('people');
Lawnchair, "This browser does not support sqlite storage."
I get the same message when I try it on http://brianleroux.github.com/lawnchair/.
Thanks for your help, as an FYI, I decided the mini app I was working on would probably be best as a PhoneGap iPhone app, so I'm perfectly ok doing the development in Safari. That said, having local storage for cross browser apps would be great. I'm a Javascript novice, but am happy to help test.
@cmcavoy
Copy link
Author

cmcavoy commented Mar 8, 2011

Yes...it was an issue with the browser not supporting WebkitSQLiteAdaptor. I think I was using Firefox. It ended up working in Chrome. This was a while back, so your mileage may vary. Try a different browser...

@quantumpotato
Copy link

Got it, thanks. Works in Chrome.

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