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

  • SEARCH
  • Home
  • 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 7880021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:02:41+00:00 2026-06-03T04:02:41+00:00

A quick overview of what I have, and the problems that are associated with

  • 0

A quick overview of what I have, and the problems that are associated with it. I have a HTML5 app that I am going to run as a native app using PhoneGap. It is a small data collection application for the local field research station.

The problem with this field station is that they are prone to loosing a signal to transmit data; thus I want to store the data on the device for later use (or to send it to a server).

Data that needs to get saved is the following:

*User Name (string)
*Transect Color (string)
*Transect Number (int)
*Transect Board (char)
*Salamander Name (string)
*Snount-Vent Length (int)
*Total Length (int)
*Centipedes (int)
*Red-Black Millipedes (int)
*Brown Round Millipedes (int)
*Brown Flat Millipedes (int)

The app itself will be a standalone app, so I want it to have a way to save the data.

What would the best way of doing this be, using a combination of jQuery & HTML5? I know Web SQL is deprecated, but I believe that may be my only way of storing this data. If not, what would be the best way to dynamically store X number of entries before sending?

Thanks for the help.

EDIT:

How about this situation, when the researcher has to do a “Full Transect”…

The researcher must go from location to location until 20 full data collections on each transect had been done. This entails 20 different locations, each with a varying number of salamanders and critters to be entered.

How would you store that much larger set of data, to be offloaded at the end, when localstorage only allows for Key:Value pairs?

  • 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-03T04:02:43+00:00Added an answer on June 3, 2026 at 4:02 am

    I’m a huge fan of wrapping localStorage up in a mini key-value store:

    window.storage = {
      store:localStorage,
      get: function( key ) {
        try {
          return JSON.parse(this.store[key]);
        } catch(e) {};
        return undefined;
      },
      set: function( key, value) {
        try {
          this.store[key] = JSON.stringify(value);
        } catch(e) {};
      }
    }
    

    This enables you to reference window.storage directly. Assuming you have the fields described wrapped up in a hash called row, you can now serialize directly:

    storage.set('myrow', row);
    

    As the data you store in row will be serialized, you could create a document that contains much more information than a single SQL-row might:

    var document = {
      property: 'foo',
      nestedArray: [ 'foo', 'bar', 'baz' ],
      nestedObj: { 'key': 'foo', 'key2': 'foo' }
    }
    
    storage.set('transectID', document);
    

    …you get the idea. The point is that you can even very rich data will be reduced by JSON.stringify and saved in a recoverable form.

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

Sidebar

Related Questions

As a quick overview: I'm trying to make a game of pool using Box2D
I'd like to get a quick overview of available solutions (libraries, ...) that allow
Could someone give me a quick overview of the pros and cons of using
I'm trying to build a quick overview that shows the upcoming calendar week. I
Quick overview Trying to insert a Business Object using ObjectDataSource (on a GridView) Get
When I review logs on a server I want to have a quick overview
Giving a quick overview of my situation: I am working on an N-Tier app
Here is a quick overview of the controllers functionality in most of the application:
Quick question, I have the following string which is a coma separated list of
Quick method description: I have two tables, lets name them table ONE and table

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.