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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:07:33+00:00 2026-05-24T09:07:33+00:00

When the user moves their cursor over different regions of an image on my

  • 0

When the user moves their cursor over different regions of an image on my page I am updating the content of a table which gives more detail to them. This table content is generated server side.

At the moment, I am storing the 50 or so different tables within their own divs which are hidden until the respective mouseover event.

Is this the best way of achieving this? Is it better to use javascript to just replace the table content of a single div?

Thanks, A.

  • 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-24T09:07:33+00:00Added an answer on May 24, 2026 at 9:07 am

    Well, if it’s 50 identical tables (structure-wise) with unique content, I’d probably settle for a custom object or something like that, instead of hiding 50 tables (50 tables = overhead in comparison versus 1 table).

    Try the following (somewhat pseudo) using jQuery:

    var data_rows = $('#table').children('tr');
    var region_information = { 
        0: { name: "Foo", location: "Loo"}, 
        1:{ name: "Bar", location: "Car" }, 
        2{ name: "Car", location: "Garage"} 
    };
    
    $('.regions').hover(
        function() {
    
            //Store the region for *performance*
            var this_region = $('this');        
    
            /* 
                Set the values in the table by getting the field corresponding to the substring
                The format = region-{n}, where {n} is a positive digit
                Repeat this `n` times, according to how many "values" you need to display per table
            */
            data_rows.children('field1').text(
                region_information[this_region.attr('name').substring(7, 1)]
            );
      }
    );
    

    Did this make sense? AS I don’t know what your table looks like or anything, I can’t quite tell you exactly how to do it. I can however provide you with a pseudo-like code (like the one above), so I hope it helps you out!

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

Sidebar

Related Questions

My goal is to draw a semi-transparent curve. User moves cursor and I draw
I'm creating an application in which the user will use their face to move
Is it possible to detect anytime a user moves their finger off of a
When a user moves their iPhone, my views switch appropriately between portrait and landscape
I have an android app where the user paints, moves and reshapes some objects
I m working on project user to move the image in one position to
I have a view in which I paint a dotted line when the user
I've got a game that I want to pause whenever the user moves to
I'm having an issue creating a mouseover menu for an image within a Content
I have three UISegmented controls (In a utility application), each of which store their

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.