lawnchair

Phonegap, Lawnchair and Cookie in Android

不羁的心 提交于 2020-03-05 06:42:39
问题 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 adapters that i can use with phonegap for Android? I saw Cookie Adapter but it is for the previous version of Lawnchair Thanks 回答1: There are many adapters in lawnchair to store stuff. http://westcoastlogic.com/lawnchair/adapters/ The way lawnchair

Lawnchair-IndexedDB doesn't support multiple records

我与影子孤独终老i 提交于 2020-01-15 05:16:06
问题 I tried creating multiple records in indexed-db but it won't allow me, example, nike and adidas objectStores var nike = Lawnchair({adapter:'indexed-db', name:'stores', record:'nike'},function(e){ console.log("nike store open"); this.save({id:1}, function(data){ console.log('nike data: ', data); }); }); var adidas = Lawnchair({adapter:'indexed-db', name:'stores', record:'adidas'},function(e){ console.log("adidas store open"); this.save({id:1}, function(data){ console.log('adidas data: ', data)

Lawnchair .nuke() not working after filling my storage quota

倖福魔咒の 提交于 2019-12-23 09:49:48
问题 I'm using Lawnchair to store persistent data using the "dom adapter" of my web client (Firefox 13.0) and have hit the storage quota. Console.log says Persistent storage maximum size reached Fair enough; I'll just nuke it with this: <script type="text/javascript" charset="utf-8"> Lawnchair(function() { this.nuke(); console.log("nuked"); }); </script> Before I hit my storage quota, the code above worked to wipe everything out of persistent storage. But now it doesn't work. The page displays

Using lawnchair with Typescript

守給你的承諾、 提交于 2019-12-12 13:08:05
问题 Got a simple problem, which was touched upon in a similar question around the "this" scope with typescript. I have a storage service which wraps lawnchair for my local storage concerns. Now I am migrating this code over to Typescript I have come to an issue I cannot solve. public GetAll(callback: Function) { Lawnchair({ name: this.storeName }, function () { this.all(callback); }); }; Now in the example above lawnchair makes this become the actual store you are actioning, but Typescript will

Lawnchair “exists” method?

和自甴很熟 提交于 2019-12-11 04:49:52
问题 I am trying to use lawnchair but the documentation on the site and github seem to say different things. Currently I need to check if an entry exists, and if not create one. However when I run lawnchair (not special parameters as I let it choose the adaptor for me) I just get told "exists" does not exist, however I am not sure if this is a problem in the documentation saying something used to exist or if it is a real bug. I am using it within firefox at the moment while developing and works

How do I use Lawnchair with more than one table?

半腔热情 提交于 2019-12-10 17:25:26
问题 I am trying to use Lawnchair (http://westcoastlogic.com/lawnchair/) for a mobile project to store information about different things. I need to store in more than more table. var people = new Lawnchair('people'); var groups = new Lawnchair('groups'); This does not completely work, it tries to copy contents from the people table to the group table. I have tried setting people.adapter.table on the fly which also results in a similar issue. I'm beginning to think it is not possible to have more