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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:21:34+00:00 2026-05-10T20:21:34+00:00

We have a web application that manages inventory for our computer support group. One

  • 0

We have a web application that manages inventory for our computer support group. One of the things that we will be using this for is to drive a ‘Computers Currently In Use’ map for our larger computer labs so that users can find an open computer more easily (the lab in our Main library has around 150 computers). The image used for the background of the display of this page is managed through the administrative part of the application as are the relationships between what stations are located in the lab and where they are located.

We’d like to make it so that admins can ‘turn off’ the display of the map page for each location when the map is being updated in the administrative interface. My idea is to extend the table that holds the location data to indicate whether the location is available for map display, and check this when the map is updated. If the check indicates that the map should not be displayed, the page would draw a suitable message instead of displaying the map image and ‘in use’ overlay data.

In the hopes that someone else may have done this, or something like it, before, I’d like to hear your suggestions on alternatives.

The map page will be refreshed periodically (one every 2 minutes) via AJAX by passing down the image url to use and the overlay data (positions of table and number of computers available at each). I’m thinking that when the page detects a transition from ‘don’t display’ to ‘display’ it would refresh the page via HTTP GET.

  • 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. 2026-05-10T20:21:34+00:00Added an answer on May 10, 2026 at 8:21 pm

    This shouldn’t be difficult to do using polling, since there are a small number of users checking for computer availability. You could probably poll a few times per minute without overburdening the server.

    I would use a map with a bunch of absolutely position DIVs overlaying the map representing each computer. The background of each DIV would be either a ‘available’ or ‘not available’ image. You could then simply spit out some JavaScript in your Ajax response to add/remove class names from each DIV representing its current state. Changing the class name would change the background image f the DIV.

    You could display a ‘loading’ spinner while the status is being edited by the administrator (which would just be another class name).

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

Sidebar

Ask A Question

Stats

  • Questions 179k
  • Answers 179k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer use strncpy() rather than strcpy() /* code not tested */… May 12, 2026 at 3:57 pm
  • Editorial Team
    Editorial Team added an answer Officially, TAR doesn't support non-ASCII in headers. However, I was… May 12, 2026 at 3:57 pm
  • Editorial Team
    Editorial Team added an answer setTimeout() will only launch the command once. In this case,… May 12, 2026 at 3:57 pm

Related Questions

I work for a firm that provides certain types of financial consulting services in
We have an ASP.NET application that manages it's own User, Roles and Permission database
I've done a fair amount of work on MVC on the web, and we're
Following the KISS principle , I suddenly realised the following: In .NET, you can

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.