Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8314315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:46:35+00:00 2026-06-08T20:46:35+00:00

i saw below example in lawnchair documentation, var store = new lawnchair({name:’testing’}, function(store) {

  • 0

i saw below example in lawnchair documentation,

var store = new lawnchair({name:'testing'}, function(store) {

    // create an object
    var me = {key:'brian'};

    // save it
    store.save(me);

    // access it later... yes even after a page refresh!
    store.get('brian', function(me) {
        console.log(me);
    });
});

i am not sure i understood it correctly or not, but based on my understanding, i wrote code like this, (name,dtime,address are variables with value)

db = Lawnchair({
            name : 'db'
        }, function(store) {
            console.log('storage open');
            var formDetails = {
                    "candidateName" : name,
                    "DateTimeOfVerification" : dtime,
                    "ResidentialAddress" : address
            }

            store.save({key:"fdetails",value:formDetails});

            store.get("fdetails", function(obj) {
                alert(obj);
            });

        });

but, in alert i did not got value, i got “[object Object]”.

1) how to store multi-attribute json object in lawnchair

2) how to get that json object.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:46:37+00:00Added an answer on June 8, 2026 at 8:46 pm

    Try this:

    db = Lawnchair({name : 'db'}, function(store) {
        console.log('storage open');
        var formDetails = {
            "candidateName" : "Viswa",
            "DateTimeOfVerification" : "30/07/2012",
            "ResidentialAddress" : "3 The Road, Etcc...."
        }
    
        store.save({key:"fdetails", value:formDetails});
    
        store.get("fdetails", function(obj) {
            console.log(obj);
            alert(obj.value.candidateName);
            alert(obj.value.DateTimeOfVerification);
            alert(obj.value.ResidentialAddress)
        });
    });
    

    1) You are storing the formDetails structure correctly.

    2) obj.value is the collection you are looking for

    Had you added the console.log(obj); line into your code and then inspected the console you could probably have worked this out for yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have posted an example below and the desired result . I saw a
I saw the example below explained on this site and thought both answers would
I have an activity defined as below: <activity android:name=com.example.ui.HomeActivity android:alwaysRetainTaskState=true/> A strange thing is
I saw in this post that I could use the below example to define
I was reading this link http://addyosmani.com/largescalejavascript/#modpattern And saw the following example. var basketModule =
While going through the examples of KnockoutJS, I saw the below code . function
i saw a example for login form same blow code class Form_Login extends Zend_Form
I'm reading a book about SQL. In that book, I saw strange query below:
I saw some websites that (for example): if you want to view your message
I have a table as example below: Prices ID* low *high**value 1* 1 *4**29.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.