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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:13:43+00:00 2026-05-14T01:13:43+00:00

I have situation where a user can manipulate a large set of data (presented

  • 0

I have situation where a user can manipulate a large set of data (presented in a table) by using a bunch of filters represented as checkboxes.

The page is AJAXed up so the user doesn’t have to wait for a full page refresh every time they click a filter. The way it’s currently implemented is by having an event handler watch all the checkboxes and request filtered data from the server when a click event is triggered.

This works fine. However, there is a usability & performance issue with doing it this way. For example, if a user clicks 6 checkboxes, 6 AJAX requests are triggered and they all come back at various intervals causing the page to be updated 6 times. This will most probably annoy the user and seems rather inefficient.

I want to put some kind of timeout on the event handler to do something like this: “Wait for 1 second and if there are no more filters clicked trigger the AJAX request”. However, at the moment I’ve only been able to delay all 6 requests by 1 second. I’m not sure how to aggregate / collect the filter info into 1 AJAX request.

Any suggestions would be greatly appreciated!

  • 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-14T01:13:43+00:00Added an answer on May 14, 2026 at 1:13 am

    Have the “click” events first check to see if there’s a timer pending. If so, the click should cancel it, and start a new timer.

    (function() {
      var timeout = null;
      $('#yourForm').find('input:checkbox').click(function() {
        clearTimeout(timeout);
        timeout = setTimeout(function() {
          doTheAjaxStuff();
        }, 500);
      });
    })();
    

    Something like that will mean that until a user has paused their wild frenzy of box checking for half a second, there’ll be no AJAX requests made. Once the user pauses, the request should transmit the current state of all checkboxes so that appropriate updates can be made. Note that this means you may need to change the way the server actions work, because you won’t have separate AJAX calls for each input.

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

Sidebar

Related Questions

I have following situation: I have loged user, standard authentication with DB table $authAdapter
I have a situation where I have to take input from the user using
I have a situation in which user can single tap a control, which show
I have a table of users profiles. Every user can have many profiles and
I use symfony 1.4.10 I have next situation: User can create Ads and he
I have the following situation: A user will define a certain filter on a
I have a situation where in a web application a user may need a
We have a situation in our product where for a long time some data
I have a situation where I want to create a signature of a data
I have a situation with my app. Suppose I have 6 users, each user

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.