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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:01:27+00:00 2026-05-17T20:01:27+00:00

I have four divs on a popup and each click makes a ajax call

  • 0

I have four divs on a popup and each click makes a ajax call to the back end and paints the right hand side. All four clicks are div by id clicks. When user clicks on div i want to disable the other three divs till this ajax complete. Once the ajax succeeds i want to enable the click events for the other three divs. Like that i want to do for all four div clicks.

Sometimes the server response is slow and i don’t want user to click all of them and show busy indicators for all of them.

Any kind of advice is really appreciated.

Thanks

  • 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-17T20:01:28+00:00Added an answer on May 17, 2026 at 8:01 pm

    A nice way I’ve seen it done, and done it myself is to use a modal ‘mask’ overlay.

    The grayed out transparent mask that covers the entire page, except for the element you’re interacting with, eg. modal popup window.

    You could do a mini version of it just within the popup and push the three non active divs behind it with CSS z-index.

    One more way is to use the jQuery BlockUI plugin.

    Another way, not recommended by jQuery is async this will block the browser itself.

    var html = $.ajax({
      url: "some.php",
      async: false
     }).responseText;
    

    jQuery also has .ajaxStart() and .ajaxStop() events that you can write your loading indicator code into.

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

Sidebar

Related Questions

I have four divs each with the same ID but different class. <div id=inner
I have four divs that are each one column tables with many rows. They
I have four divs in a row and whichever one you click on, the
I have four UINavigationControllers assigned each to a tab in a UITabBarController. Each UINavigationController
I have four divs that are draggable. And a div where I drop the
I am setting up a page with jQuery's Cycle plugin and have four divs
I have a four divs all set display:none and on document.ready i am showing
how to get the css floating property to work with four divs? I have
I have four divs contained in another div, and I want the four inner
I have 5 divs in my page. Father div container includes four child div.

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.