Internet Explorer 9, JScript Error c00c023f

IE 9, Ajax and Error c00c023f

After updating to Internet Explorer 9, a previously working ajax driven site of mine stopped working sporadically.

In this short article you will see how to reproduce, and how to solve the problem.

Steps to reproduce

  • Create a XMLHttpRequest object
  • Assign an onreadystatechanged event handler
  • Execute a request
  • Abort the request before the response has been handled
  • You will now see that the readystatechange handler will be called, with the readystate property set to '4'. Any attempt to read the XmlHttpRequest object properties will fail.

If you're not running with a debugger the exception is silent, but can still be annoying. Especially if you're displaying a "loading animation" or anything similar while the request is being executed. The result in my case was that it seemed as the page never stopped loading

Solution

Just before you call the XmlHttpRequest.abort() method, set a flag on it, this is how I did it: XmlHttpRequest.aborted = true;
XmlHttpRequest.abort();

In the onreadystatechanged handler, the first lines of code in my case is:

if (xmlHttpRequest.aborted==true) { 
  stopLoadAnimation();
  return;
}
And that's all there is to it, your Ajax driven site is up and running again.

Related to "Internet Explorer 9, JScript Error c00c023f"

Facebook Signin using the PHP SDK

Have you setup a facebook app and downloaded their sdk, and don\'t know where to go from there?

Read Me...

Facebook PHP SDK login problem

Have you integrated a facebook login to your site, or are you planning to? There\'s a small bug involving the sign in process that can make your life miserable unless you know how to get around it. Here\'s one possible solution.

Read Me...

Free Icons and Glyphs for your apps or web sites

Why these

Simply put, most graphic resources aren't free if you wish to distribute them with your apps or use them on your sites.

Mind you, I'm no graphic artists and can barely find my way through Paint Shop Pro. The only reason I post these resources is because somewhere, sometime there might be a person who is actually worse than me in producing graphics. These icons and resources are for them.

Use however you wish, whenever you want.

I will add to this article whenever I create new resources for my apps or sites

Read Me...

Internet Explorer 9, JScript Error c00c023f

IE 9, Ajax and Error c00c023f

After updating to Internet Explorer 9, a previously working ajax driven site of mine stopped working sporadically.

In this short article you will see how to reproduce, and how to solve the problem.

Read Me...
Page 1 / 2
Previous Next


Just In

Know your limits: Web Design

Know your limits: Web Design

You might have the best app ever created, or you might have the user friendliest web page in the world. You might even have the most useful piece of shareware ever made and still not making any money.

Read Me...

DroidXplorer big in China?

DroidXplorer big in China?

According to an email DroidXplorer will be preinstalled on devices, and be featured on a set of app stores. For free.

Read Me...

QuickTip: PayPal IPN - Complex Pass Through Data

QuickTip: PayPal IPN - Complex Pass Through Data

Send complex data in the custom field that you use to match a payment with a customer, order or whatever you need.

Read Me...

PayPal IPN - Take control over your incoming payments!

PayPal IPN - Take control over your incoming payments!

I'm sure you've heard all about the simplicity of using a payment processor service to sell your items online, but don't miss out on the ones who prefer using Paypal.

Read Me...

DroidStop Android Apps

Despite popular belief, creating mobile apps and games is NOT the quick way to the millions!

Read Me...

QualityApp.net App Review Index

Having your app reviewed is a great way to boost your downloads! Read more on how QualityApp can help you find your mentions..

Read Me...

Alpha Magnetic Spectrometer

Two years after the final mission of Endeavour and the ending of the space shuttle era, the intrument called "Alphamagnetic Spectrometer" may have something to tell us.

Read Me...

Smart Syncing between your desktop and box.net, dropbox and other cloud storage services

Recently I came across a good deal for an online storage service and thought it would be a good idea to sync photos and videos to it so I wouldn't be dependent on a single physical computer.

Read Me...
Page 1 / 6
Previous Next