Questions tagged [lawnchair]

Lawnchair is a client-side JSON object store implemented in JavaScript.

Lawnchair is a simple JSON database for client-side storage in web applications. Lawnchair supports various storage mechanisms such as plain DOM objects, Gears/SQLite, and WebKit/SQLite.

References:

60 questions
1
vote
0 answers

Lawnchair query plugin - uncaught reference error

I've just started using Lawnchair's Query plugin and I cannot seem to get the query syntax to work with a parametised argument in the where() clause. var store = new Lawnchair('store', function() { }); store.nuke(); // save some…
saille
  • 9,014
  • 5
  • 45
  • 57
1
vote
1 answer

Delete database in Blackberry Torch - Phonegap

I am building cross platform applications using Phonegap. Additionally I use Lawnchair to store data in the local database. My question is quite general. I install an application that I built for iPhone, Android and Blackberry, then create some…
Gabor Peto
  • 642
  • 11
  • 24
1
vote
1 answer

How to link records with lawnchair js

I am using Lawnchair JS from http://brian.io/lawnchair/ in my Phonegap Application to manage my database records. I am new to document stores but experienced with traditional relational databases. How should I go if I wanted to reference one record…
Andre Garzia
  • 983
  • 2
  • 11
  • 19
1
vote
0 answers

Lawnchair code executing twice

I am trying to use Lawnchair and have found that it seems to execute all functions twice. This may be just something I am doing wrong with JavaScript in general. Here is and example that does nothing other than demonstrate my…
dakamojo
  • 1,839
  • 5
  • 21
  • 35
1
vote
1 answer

Getting LawnChair JSON Obj after storing

I'm a little confused on how to retrieve my JSON object from a different page. Page 1 Snippet [Storing]: $.getJSON(serviceURL + 'getTaskDetails.php?id='+id, storeTasks); //[JSON Format of getTaskDetails][1] function storeTasks(data) { var…
0
votes
1 answer

Phonegap iOS DB Query

I am using Phonegap 1.3.0, and want to develop an app which uses local storage. Some googling brought me to sqlite, but i have had no success in implementing it in my app. https://github.com/davibe/Phonegap-SQLitePlugin I tried this link but i am…
user790514
  • 137
  • 1
  • 2
  • 12
0
votes
2 answers

Lawnchair indexing problems

I'm trying out Lawnchair but the documentation is sparse, to say the least. Here are a few questions: 1) How do I order a list of stored objects? Or, to put in another way, how do I define an index for the objects? 2) Is there any way to have…
rcpinheiro
  • 85
  • 1
  • 6
0
votes
1 answer

Phonegap, Lawnchair and Cookie in Android

I'm using Lawnchair with in my Android Phonegap App. For most of my users, Lawnchair works well. But for some reasons, some of my users say that the settings are not saved (i use Lawnchair with DOM Adapter to save settings). Are there any other…
Peacemoon
  • 3,198
  • 4
  • 32
  • 56
0
votes
1 answer

Multiple values in lawnchair

I'm using Lawnchair, and I've managed to store a value locally. Something like this: var Users = new Lawnchair({table:'Users', adaptor:'dom'}); function save_prompt() { var UserName = prompt("Your Username","John Doe"); if (UserName!=null…
ShuFaz
  • 39
  • 1
  • 8
0
votes
1 answer

How to Store Multi-Dimensional Arrays using Phonegap 1.0 for iOS 4.3+

I am building an iOS App using HTML/CSS/JS(jQuery) + PhoneGap and need to load a set of default records into local storage at each application load for usage in the App. Each record can have an unlimited number of steps, with each step having a set…
dSquared
  • 9,725
  • 5
  • 38
  • 54
0
votes
1 answer

Lawnchair Storage Woes

Ok i thought i had fixed my lawnchair problem but it appears I havent:( What I am trying to do is the following will post code chunks below 1. Parse XML 2. Check if a certain item (from XML) already exisits in my DB. 3. If it doesnt then add it…
user821902
  • 140
  • 1
  • 8
0
votes
3 answers

Uncaught ReferenceError: Lawnchair is not defined

I'm trying to get the basic lawnchair example working. The Code: