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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:16:15+00:00 2026-06-11T22:16:15+00:00

I am using jquery load to load php pages into my content area. I

  • 0

I am using jquery load to load php pages into my content area.

I have noticed some screwy behavior if the user repeatedly clicks on the navigation menu items abusively.

Right now my code is as simple as hiding the content pane, loading the new page, then fading in:

 $("#homeLink").click(function(){
    $("#contentPane").hide();
    $("#contentPane").load("welcome.php");
    $("#contentPane").fadeIn();
 });

Problematic behavior: new link is clicked, pane fades in with the previous page (then updates to the new page)

I tried using $.ajax({async:false});, but this all persisted. At this point, I am considering re-writing my navigation system to vary includes based off of url parameters, unless some insight can be provided as to how I can stop it from queuing a second load call until the first is complete?

  • 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-06-11T22:16:16+00:00Added an answer on June 11, 2026 at 10:16 pm

    You can use “complete” callback. It is executed when the request completes.

    $("#homeLink").click(function() {
        var pane = $("#contentPane");
    
        pane.hide();
        pane.load("welcome.php", function() {
            pane.fadeIn();
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some problem to get the utf-8 string from PHP using jQuery $.load()
I'm using jQuery to load some content into a lightbox-like div in a web
When using jQuery.load to dynamically load HTML content into a webpage, what is the
I am trying to load some content into a page using Ajax. The html
I have a wordpress website and want to load my pages using jquery. I
I'm using jQuery to load the result of a PHP script into a variable.
I have a set of jQuery UI AJAX tabs that load individual .php pages
I am currently using jQuery to load a variable php layout depending on the
After loading a PHP template (using jQuery's load function), this simple script won't make
I'm using the simple jQuery DIV refresh code. var refreshId = setInterval(function() { $('#refreshdash').load('dashboard.php?cache=');

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.