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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:28:32+00:00 2026-05-31T01:28:32+00:00

I’ve found other threads discussing .load and .ajax with Chrome and IE, but none

  • 0

I’ve found other threads discussing .load and .ajax with Chrome and IE, but none with my particular problem.

I’m using the following code to call in a response from a servlet. The response should be 3 lines of text/html, but I can adjust to text/plain.

function checkProgress(){
    $.ajax({
        type: "GET",
        url: "/myServlet",
        success: function(result) {
            $('#data').text(result);
            setTimeout(checkProgress, 2000);
        }

    });​
}

The idea here is to pull in the value ever 2 sec. and display in a div.

<div id="status" style="display:none;">                
            <h3>Status</h3>                
                <p id="data"></p>
            </div>  

The problem that I am having is that this will only load 1 time in Chrome and IE8. FF will repeat the load and I can see the value changing in browser.

Other issues I have seen talk about this not working at all in Chrome and IE8, but mine does work. It just will not repeat the load.

I have also tried this with .load because I want to maintain any html formatting and have encountered the same problem. I’m willing to skip the formatting for now so I can get this to update.

Any help is much appreciated!

EDITED
Researching Chrome a little more, I’ve found that it stops the ajax script when I submit the form. My page kicks off a rather lengthy servlet. I’m using the Ajax call to return status updates from the servlet. When I submit to start the servlet, the script that is running to report the status stops in Chrome. No errors. It just stops running.

This looks like a threading issue in Chrome. Is there a better way of doing this? Can I kick-off both the ajax and servlet at the same time with an onsubmit event?

  • 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-31T01:28:34+00:00Added an answer on May 31, 2026 at 1:28 am

    IE caches ajax requests. How about adding a random string along with the url to make it a new request every time ?

    Set the cache property value to false. So jquery will add a unique timestamp to all requests so it wont be a cached response everytime.

    function checkProgress(){
    
        $.ajax({
            type: "GET",
            url: "/myServlet" ,
            cache: false,
            success: function(result) {
                $('#data').text(result);
                setTimeout(checkProgress, 2000);
            }
    
        });​
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.