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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:09:02+00:00 2026-06-17T12:09:02+00:00

I have a div: <div id=content></div> And when the page is loaded i call

  • 0

I have a div:

<div id="content"></div>

And when the page is loaded i call a .load(). This load takes around 10 minutes to finish and during the execution its PHP file return some information telling about the execution status, something like Linux loading. I want do put this information inside the div #content dynamically, but .load() is putting only at the end of the execution. Someone can help me please to do this?

The .load() call:

$("#content").load("/admin/ajax/analyse.php");
  • 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-17T12:09:03+00:00Added an answer on June 17, 2026 at 12:09 pm

    jQuery’s ajax interface does not provide a way to get progress updates for a response (even though it claims to be a superset of the browser’s native XMLHttpRequest object). Apparantly, such a use case is inconceivable to the jQuery developers:

    No onreadystatechange mechanism is provided, however, since success, error, complete and statusCode cover all conceivable requirements.

    By using the an XMLHttpRequest directly, you can read the current progress of a response in an onreadystatechange event handler:

    var xhr = new XMLHttpRequest();
    xhr.open("GET", "/admin/ajax/analyse.php", true);
    xhr.onreadystatechange = function receiveUpdate(e) {
        $("#content").html(this.responseText);
    }
    xhr.send();
    

    This works in the latest versions of most browsers including IE 10, Chrome, and Firefox.

    Demos:

    • Send response continually for 10 minutes
    • Pause several minutes between sending data over 15 minutes
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the below xpath expression //div[@class=post-content]//img which runs on a html page, scanning
I have a page similar to: <div id=content> <div id=boxes> <div id=box:content:1:text /> <div
The Idea I have a main PHP page that loads content in DIV's from
I have a page that consists of a header div for navigation, a content
I have multiple menues on my page... <div class=menu> <div>Menu header</div> <div>Menu content</div>// should
I want to have a page loaded into a div and while the page
I have a an ajax call that loads an HTML page into a div
I have created jquery-ajax call for php page that creates content by selecting data
I have a php page call it page.php . In this page I am
I'm attempting to load different content into a div, the refresh code I have

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.