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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:31:29+00:00 2026-05-16T16:31:29+00:00

I must admit, this is my first post on this site, so I apologise

  • 0

I must admit, this is my first post on this site, so I apologise in advice if I do something wrong (formatting etc).

Anyway, I’m creating a kind of mmo using javascript (and jQuery), and so far everything is running fine in Chrome, Safari, Firefox, etc. However, I’ve found that somewhere along the line, Internet Explorer crashes.

By reproducing the crash I’ve narrowed it down to this code:

function getUpdates(){
var data={uid:playerName,area:1,mid:lastMessage};
$.ajax({ 
    url: "getUpdates.py", 
    timeout: 32000,
    data: data,
    type:"GET",
    complete: function(obj, textStatus){
            //handleUpdates(obj);
        getUpdates();
        }
    });
}

Which is supposed to poll for updates over a long time. However, in IE after one reply this code gets stuck in an infinite loop, which will crash the browser. It doesn’t seem to crash after every reply, only if there is no server response.

Note, the line that says “complete:…” has been tried as:

success: function(...){getUpdates();...},
error: function(...){getUpdates();...}

with the same problem occurring.

  • 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-16T16:31:29+00:00Added an answer on May 16, 2026 at 4:31 pm

    IE is returning the AJAX call instantly from a cache.

    You should add a random parameter to the URL to force IE to ignore its cache, like this:

    url: "getUpdates.py?RandomNumber=" + Math.random(), 
    

    (You can also use new Date)


    Also, you should probably check for updates a little more slowly by adding a 5 second delay:

    complete: function(obj, textStatus){
            //handleUpdates(obj);
        setTimeout(function() { getUpdates(); }, 5000);   //milliseconds
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having some issues with Mod_Rewrite. I must admit this is my first venture into
I must admit that I don't really know if this is the right place
I have this simple script that I'm working on. I must admit, I'm totally
This problem is about concurrent high speed inserts. I must admit it is very
I must admin this is kind of funny even though I think I understand
I must first admit that I'm new to Analysis Services but now must extend
first i must admit that i'm not very familiar with sql server's recursive CTE's
With this XML file - <Instructions> <Admin> <Instruction> Steps must be completed in order.&lt;/br&gt;
I must admit that I am incredibly jealous of those developers who happen to
I must admit the HTML5 semantic markup confuses me. I'm talking about these tags

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.