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 7681775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:25:05+00:00 2026-05-31T18:25:05+00:00

I am currently data into a local db as following: window.localStorage.setItem(‘QQIDVAL’ + ID, JSON.stringify(this));

  • 0

I am currently data into a local db as following:

    window.localStorage.setItem('QQIDVAL' + ID, JSON.stringify(this));

How do I go about then retrieving all of the data that is in the localstorage and looking for ones that start with “QQ”

Also how do I go about selecting which columns I want to retreive as JSON.stringify(this) has a lot of columns but I only need a subset of those.

  • 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-05-31T18:25:07+00:00Added an answer on May 31, 2026 at 6:25 pm

    You can take advantage of the fact that localStorage is treated like an object and do something like this (iterating through the keys and checking their name):

    ​for(dataObj in localStorage) {
        if(dataObj.charAt(0) == Q && dataObj.charAt(1) == Q) {
            // do whatever with your data object, it starts with QQ
            var myObj = localStorage[dataObj];
        }
    }​
    

    You could also change the if statement to this:

    if(dataObj.substr(0,2) == "QQ") { // do your thing
    

    Don’t have a reference to the substr() documentation right now though, don’t recall if that’s the correct syntax.

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

Sidebar

Related Questions

Currently have : LOAD DATA LOCAL INFILE '/Users/RkG/Desktop/Microblogs.csv' INTO TABLE blogs This is an
I'm currently working on a Silverlight app and need to convert XML data into
is there any easy way of store XML data into core data? Currently, my
Currently I am loading data from a previous session into my application using the
This is my first attempt to throw data back and forth between a local
I am creating a web interface which currently reads data in from an XML
I'm currently writing a data access layer for an application. The access layer makes
I'm wondering how people are currently resetting their data / cleaning up test remnants
I am an upper level Software Engineering student currently in a Data Structures and
I'm designing the Fact and Dimension tables for a data warehouse currently using SQL

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.