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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:21:42+00:00 2026-05-29T08:21:42+00:00

I want to know that can we build a data object using jquery/json, which

  • 0

I want to know that can we build a data object using jquery/json, which only exist in the browser like we have session object at server side?

The reason for having a data object is that I am providing different layouts for users so they can manipulate data with out fetching it from the server every time they change the layout i.e. like a user has his purchase history for last 6 months and he want to see the bar graph of it history depending upon different metrics like how much they purchased using cash/credit card/ debit card or in which month they have spent more than other months …

the one good example is the reputation system of stackoverflow where at the bottom it shows the full reputation stats but when we select the particular time, it expands the above graph to that period, and when we click any of the bar on the top graph it shows the questions which has been voted up/down … something like a database in the browser.

I hope I have clearly explained what I am looking for?

  • 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-29T08:21:43+00:00Added an answer on May 29, 2026 at 8:21 am

    Here is what I would recommend. I am going to go by your suggestion for a user to be able to

    a user has his purchase history for last 6 months and he want to see the bar graph of it history depending upon different metrics like how much they purchased using cash/credit card/ debit card or in which month they have spent more than other months

    To minimize query time, I would create a materialized view that holds data that would be necessary for this functionality. I assume that this view would not always have to be up to date and you could re-create it at an off-hour every day or something.

    Then I would a class that would solely serve to fulfill AJAX requests to retrieve this data. You should create objects that have accessors (getters) that represent the values you are trying to display. Then convert those objects to JSON and have that be the return value of your AJAX request.

    Once you have it back on your HTML page, you can do whatever you want with it since it is in JSON format. You could also put the result of your query converted to JSON on the session object so you can have access to it on every page.

    I hope that helps. Feel free to message me if you need any clarification.

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

Sidebar

Related Questions

I want to create a component which can be used like: <mc:chart data=#{bean.data} width=200
I want to know that how can I add help support to my winform
I just want to know if there is a program that can convert an
I know that __stdcall functions can't have ellipses, but I want to be sure
I want to know that how voice recognition in android works? Which library it
I have a bit of data that I want to use to build a
I want to know I can dynamically modify an existing Crystal Report (using C#
i want to know that when we want to use push notification service.From where
I want to know that does apple's Push Notification Server generate new device token
i want to know that why do we add an app.config file in c#

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.