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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:19:08+00:00 2026-06-18T14:19:08+00:00

To start of I have two pages (in the same folder, on the same

  • 0

To start of I have two pages (in the same folder, on the same domain), we’ll call them dummy and dummy2.

I have tried both html5 localstorage and now webSQL and am finding that I can save and read the data when on dummy (dummy is the page that has a save and read button whilst dummy2 only has a read button), but when I switch from dummy to dummy2 the local storage and web SQL disappear.

From my understanding, both of these techniques should save the data to be used across multiple pages on your site?

Here is my webSQL code with the local storage commented out

<script>
    $(document).ready(function () {
        $("#save").click(function() {
            //localStorage.setItem('dummy', 'Hello there');
            //console.log(localStorage.getItem('dummy'));
            var db = window.openDatabase("UserDetails", "1.0", "User Details", 10000);
            db.transaction(populateDB, onDBError, onDBSuccess);
            function populateDB(tx) {
                tx.executeSql('DROP TABLE IF EXISTS DETAILS');
                tx.executeSql('CREATE TABLE IF NOT EXISTS DETAILS (id unique, Name, Email)');
                tx.executeSql('INSERT INTO DETAILS (id, Name, Email) VALUES (1, "User1", "example@example.com")');
            }
            function onDBError(error) {
                console.log("Error");
            }
            function onDBSuccess(msg) {
                console.log("Success (Saved)");
            }
        });
        $("#read").click(function() {
            tx.executeSql('SELECT * FROM DETAILS ORDER BY Name', [], onQuerySuccess, onDBError);
            function onQuerySuccess(tx, results){
                var name = results.row.item(i).Name;
                console.log(name);
            }

        });
    });
</script>

This is the result of hitting save;
enter image description here

But when I move to dummy2:
enter image description here

Any ideas?

  • 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-18T14:19:09+00:00Added an answer on June 18, 2026 at 2:19 pm

    Its some sort of weird system or even chrome installation corruption thing about the Resources tab. Your code works fine when I look at it and my Resources tab under localStorage updates instantly and persists on reload, though I remember one time for me the Resources tab didn’t work and I had similar problems of it not working on refresh, and I had to use the Console only to see correct results.

    If it works for you in the chrome console or by otherwise programatically querying the localStorage object, it doesn’t matter what it says in those web inspector UI’s it still works anyway and your code is fine.

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

Sidebar

Related Questions

I have two points in a cathesian 2D system, both give me the start
I have two lots of the same divs on seperate pages - Is there
Using facebooker gem. Two separate apps both start returning blank pages in the facebook
I have two buttons, one for start recording and another for stop recording. i
I have two datepickers. When start date is selected, end date is automatically assigned
I have two projects in the same server, their settings conflict in the session.auto_start,
I have two schemas S1 and S2 with identical table structure. I`ll start with
I'm using the jQuery datepicker where I have two textboxes (start date / end
I need change background of all text that have two spaces from the start
Hey everyone, I want to start using Scheme and I have two questions. First,

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.