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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:34:48+00:00 2026-05-18T08:34:48+00:00

This is a simplified scenario to cut to the chase: I have one webpage

  • 0

This is a simplified scenario to cut to the chase: I have one webpage with a table of data in grams. You can click on the table header to sort columns by their data, or click on rows to highlight them. There’s also a graph on the page, and a script on the page pulls data out of the table and uses it as data for the graph (this includes rows that are highlighted, which highlights lines in the graph at the same time).

Now, I’ve taken values in the table that are over 1000 grams, divided by 1000 and show them as kilograms, so one column in the table has a mixture of grams and kilograms to help reading the data. However, this messes with the logic in all of the above.

Do you think I should hide the machine-friendly (MF) data in hidden columns to sort by, and display human-friendly (HF) columns? Should I include the MF data in each table cell, hidden with span tags? Or is it worth it to completely decouple MF data on the site? It seems like any of these solutions will involve a ton of rewriting data retrieval, sorting, and/or graphing code. What’s the most encapsulated approach?

  • 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-18T08:34:49+00:00Added an answer on May 18, 2026 at 8:34 am

    Consider storing all your data in a javascript variable (not displayed on the page at all), and then outputting the data as HTML using some templating library. Have a look at jquery template for a start – http://api.jquery.com/category/plugins/templates/

    Edit: the above API link doesn’t give an example. Try this: http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-an-introduction-to-jquery-templating/

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

Sidebar

Related Questions

I have a simplified test scenario useful for asking this question: A Product can
I have been given a task that can be simplified to this scenario: Customers
My scenario is this: I have a table with a structure like this (simplified)
I have a table like this (simplified): ID | Name | Parent --------------------------------- 1
In this simplified scenario, I have a model called Post Each post has a
The Scenario: I have the following (simplified) database table scenario: ID ProductName ProductCategory Colour
I have a similar scenario as this one: public class TestLinq2Xml { private XElement
I have this simple scenario (simplified for the sake of this question): <input type=text
Simplified scenario, I have a table with the following fields/values: ID value 1 '12345'
I have two data structure classes (this is a simplified version of my code)

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.