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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:16:49+00:00 2026-06-11T19:16:49+00:00

using my website people can search any names in world. users can add their

  • 0

using my website people can search any names in world. users can add their particular name to favorite list. each user can see their favorite names list in another page(names those added by user in one session). can you suggest a best method to do this using jquery/ajax.
Thankz.

  • 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-11T19:16:50+00:00Added an answer on June 11, 2026 at 7:16 pm

    You could use local storage to save the data. It works as easy as this:

    localStorage.setItem('key', 'value');
    localStorage.getItem('key'); // returns 'value'
    

    You could save the names using an incrementing key:

    localStorage.setItem('name-' + (localStorage.length + 1).toString(), 'favName');
    // Names stored as 'name-0', 'name1', ...
    

    And then, to retrieve the list:

    var names = new Array();
    
    if (localStorage) {
        if (localStorage.length) {
           for (var i = 0; i < localStorage.length; i++) {
               names[i] = localStorage.getItem('name-' + i.toString());
           }
        } else {
           names[0] = 'You have no favorite names stored';
        }
    }
    

    There are some plugins that provide fallbacks on browsers that don’t support web storage (Even on ie6), like totalStorage or jstorage.

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

Sidebar

Related Questions

On my website, people can add an item to their wishlist. When X number
I am building a simple Rails website, where users can create posts and people
I'm using a relational MySQL database for a website where people can create online
I have got a website where people can share activities just like Twitter, users
I have a website where people can sell products. Each time they add a
I have a website where people can upload 30+mb of data in a single
I am building a website where people can upload video with the file size
I'm using the arrows to let people move around on my website. I don't
Imagine you're creating a website that allows people to search for rental cars based
I have a website that people can book courses and workshops on. They can

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.