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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:59:59+00:00 2026-05-17T17:59:59+00:00

I am passing 3 HashMaps that contain data pertaining to 13 different time periods,

  • 0

I am passing 3 HashMaps that contain data pertaining to 13 different time periods, to a jsp page.

The data from these maps is used to populate and alter a summary data div (that consists of the summed total of the different datasets, for the selected ranges, so it could 1 of 13, 2 of 13, all 13 and so on. However the 3 datasets are large. In total there are 910 = (13*7)+(13*7)+(13*8*7) individual values.

Following me so far ?

The selected data is used by javascript/jquery when a check bx is selected – so there are 13 checkbox and when checked the data is included in total, when unchecked the data is subtracted. The selected subset of data is used to plot a graph with flot. I am not using an HTML form.

Currently I am using hidden inputs behind a visible checkbox – this has slowed everything right down, because the DOM is so large ? What are better options that will increase the responsiveness (specifically a jquery dialog that contains all the data).

My ideas so far :
Passing the data in as a json string ?
Using input tag attributes rather than 910 individual inputs ?

Thanks!
(any solution must be compatible with ie6 and ie8)

  • 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-17T17:59:59+00:00Added an answer on May 17, 2026 at 5:59 pm

    I would use .data() to attach the relevent values for a given checkbox to it. This is like storing it in attributes expect for you’re not creating expando property issues. As far as storing the full data sets id stick with jsut the hashes as a global variable, or you could attach them to the form element the checkboxes belong to with .data() as well (assuming the are actually in a form).

    So for example we might see something like:

    $('#dataForm').data(
      'hashOne', 
       hashOne
    ).data(
      'hashTwo', 
      hashTwo
    ).data(
      'hashThree', 
      hashThree
    );
    
    $('#dataForm #checkboxOne').change(function(){
      var form = $(this).parents('form');
      if($(this).is(':checked'){
         $(this).data('currentValue', form.data('hashOne').someValueKey);
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm used to passing around string like this in my C++ applications: void foo(const
I noticed that when passing reference parameters to boost bind, those parameters won't act
Passing an undimensioned array to the VB6's Ubound function will cause an error, so
I'm passing raw HTTP requests to an apache server (received by PHP). The request
When you're passing variables through your site using GET requests, do you validate (regular
If I am passing an object to a method, why should I use the
I'm currently passing the pid on the command line to the child, but is
I'm passing a reference of a form to a class. Within this class I
I'm passing small (2-10 KB)XML documents as input to a WCF service. now I've
.NET XSLT engine allows passing objects to the XSLT processing engine through the AddExtensionObject

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.