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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:37:27+00:00 2026-06-12T12:37:27+00:00

I got a class (SiteLoader) that one of its properties is another class(LocalStorage_Helper). I’m

  • 0

I got a class (SiteLoader) that one of its properties is another class(LocalStorage_Helper).

I’m testing the small API I made, but I’m getting “LocalStorage_Helper is not defined” error, and I have no idea why.

Here is the class that uses LocalStorage_Helper and the parts that are using the object:

/// <reference path="localSotrageHelper.js" /> // -- refrence to the js file

function SiteLoder(_storageName) {
  this.theList = new Array();
  this.storageHelper = new LocalStorage_Helper(_storageName); --HERE is where i get the error
}

//Add_theList_ToStorage
SiteLoder.prototype.Add_theList_ToStorage = function () {
  this.storageHelper.AddItem(this.theList);
}

//Get_theList_FromStorage
SiteLoder.prototype.Get_theList_FromStorage = function () {
  this.theList = this.storageHelper.GetItem();
}

I’m using SiteLoader like so, on the html file:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <script src="SiteLoader.js" type="text/javascript"></script>
  <script>
    var Loader = new SiteLoder("sites"); // Error is thrown when i open the html

    function setStoregeTest() {
      Loader.PupolateListFrom_UL("list");
      Loader.Add_theList_ToStorage();
    }

    function showStoregeTest() {
      Loader.Get_theList_FromStorage();
      Loader.WriteListTo_UL("list");
    }
  </script>
</head>
<body>
  <ul id="list" contenteditable="true">
  <li></li>
  </ul>
  <input type="button" value="set" onclick="setStoregeTest()" />
  <input type="button" value="get" onclick="showStoregeTest()" />
</body>
</html>
  • Why I do get an error?
  • Do I need to initiate LocalStorage_Helper in a different way?
  • 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-12T12:37:28+00:00Added an answer on June 12, 2026 at 12:37 pm

    You are not including LocalStorage_Helper.js in your html markup.

    <head>
        <title></title>
        <script src="LocalStorage_Helper.js" type="text/javascript"></script>
        <script src="SiteLoader.js" type="text/javascript"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a class called Board and one of its property's is an ObservableCollection.
I've got a class that looks like: public class Competitor { public virtual int
I've got a class where I pass in a panel reference and in that
I've got a class representing an interval. This class has two properties start and
I've got a class with many string arrays. I'd like to have one generic
I got class with template methods that looks at this: struct undefined {}; template<typename
I've got class A that implements IA. Now I need to create class B
I got an class that extends Mailer and would like to have automatic tests
Got a class that serializes into xml with XMLEncoder nicely with all the variables
I got a class called Property (from external library == cannot be modified) that

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.