Search code examples
javascriptjsonlawnchair

Lawnchair across multiple pages


I have been playing around with using Lawnchair in phonegap but can only get the data to load on the same page it was saved.

Is this how Lawnchair works?

I have tried console.log to log the data that I have saved using Lawnchair on the page that it was saved in, but as soon as I move to another page with the same retrieval code it does not show.


Solution

  • I had a similiar problem when building a two-page HTML5 'app' based on Local Storage.

    I made the mistake of not including the 'dom' plugin alongside the lawnchair.js file. (I thought it was somehow already built-in to Lawnchair because its the default storage system).

    See the first paragraph of this post..