Easy solve the AJAX c00ce514 error

If your AJAX code runs smoothly on Mozilla Firefox but experiences problems when running on Internet Explorer and gives out an error:
"Could not complete the operation due to error c00ce514"
here is what to do : just set the proper character set encoding in your requested file and try again:)

PHP Example:

header("Content-type: text/html; charset=windows-1251");

The error means that Microsoft XML Parser is having problems when parsing the AJAX response string.

Cheers! by Nevyan Neykov



6 коментара:

  1. what if this is posting when I'm not attempting to load any items with AJAX?

    ReplyDelete
  2. Worked great for me, thanks!

    ReplyDelete
  3. Anonymous6:04 AM

    This is due to you are using the Update panel in your applicaiton or on that page.

    Do not use update panel it will work properly.

    Most of the time this error comes while you are downloding code.

    == Jagdeep Mankotia
    YahooIM: jagdeepmankotia

    ReplyDelete
  4. Anonymous7:07 PM

    worked for me. thanks :)

    ReplyDelete
  5. Anonymous2:50 PM

    What if you're trying to load an image? That's my case and I don't know how to solve. Thanks for the help.

    ReplyDelete
  6. 2 more possible reasons:
    1. You'll have to close your image tag: ie.: <img src="http://yout_web_site.com/image.gif" />
    2. When fetching images you'll need to set up your requested page header like this: <?php header('Content-Type: image/png'); ?>

    ReplyDelete