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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:44:38+00:00 2026-06-18T02:44:38+00:00

For a dynamic page , I use Ajax Long Polling and even with jQuery

  • 0

For a dynamic page, I use Ajax Long Polling and even with jQuery 1.9, Internet Explorer hangs after the first request.

The script code is based on the article Simple Long Polling Example with JavaScript and jQuery

 <script type="text/javascript" charset="utf-8"> 
   $(document).ready(function(){ 
     (function poll(){
       $.ajax({ url: "ajaxstats.json", success: function(data){
         $("button.requests" ).empty().append(data.requests);
   }, dataType: "json", complete: poll, timeout: 30000 });
     })();
   });
 </script>

The console shows no errors.

The IE network monitor immediately shows many requests to the ajaxstats.json resource with a response time of < 1 ms and a 304 (not modified) response code. The response body is correct (JSON code).

The server code always delays the answer by 1000 milliseconds. And in Firefox, Firebug XHR log shows that every request takes around 1000 milliseconds, as expected.

The HTTP response code is different between Firefox and Internet Explorer:

  • in Firefox: response code is 200 ok
  • in Internet Explorer 9, the response code is 304 (not modified)

Is there a way to work around this IE problem?

  • 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-18T02:44:39+00:00Added an answer on June 18, 2026 at 2:44 am

    Try setting cache param to false, if set to false, it will force requested pages not to be cached by the browser.

     <script type="text/javascript" charset="utf-8"> 
       $(document).ready(function(){ 
         (function poll(){
           $.ajax({ url: "ajaxstats.json", success: function(data){
             $("button.requests" ).empty().append(data.requests);
       }, dataType: "json", complete: poll, timeout: 30000, cache: false });
         })();
       });
     </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a dynamic 'page' listing for threads/comments using AJAX. in
I have a dynamic page built with jQuery. Html pieces are loaded from mustache
I'm designing a dynamic web page that loads contents by AJAX, like the wall
While I was trying to refresh page contents dynamically using Ajax/JQuery, I have learned
I have a page with dynamic data loaded by some ajax and lots of
Is it possible to use the JQuery ajax method to pass parameters into a
I want to use jqueryui tabs widget in ajax requested page. In my site
I have a dynamic page that gets a certain number of results for rooms
I have been working on a dynamic page http://www.euroworker.no/order and I want my lovely
I need a solution for caching PHP info on a dynamic page AND include

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.