Could Not Complete The Operation Due To Error C00ce514 Ajax
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up IE9 AJAX error: “Could not complete the operation due to error c00c023f” up vote 0 down vote favorite I have an AJAX request running a PHP script and I want to handle situations were the request returns state 500. My code is working on Chrome and Firfox, but on IE9, if I add a condition if(httpRequest.status==500) I get this JavaScript error: Could not complete the operation due to error c00c023f. I have a loading image on the page, and because of this error I'm not able to replace the image, and the page seems to keep loading. Just as quoted here: 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 First, here is my AJAX call code: function sendRequest(url, params, divToChange) { // code for IE7+, Firefox, Chrome, Opera, Safari if (window.XMLHttpRequest) { var httpRequest = new XMLHttpRequest(); } else // code for IE6, IE5 { var httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); } //open the request and prepare variables for the PHP method being activated on server side// httpRequest.open("POST", url, true); //Set request headers for POST command// httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); if(divToChange != "false") { httpRequest.onreadystatechange=function() { if(httpRequest.readyState==4 && httpRequest.status==200) { document.getElementById(divToChange).innerHTML=httpRequest.responseText; eval(document.getElementById("runscript").innerHTML); } else if (httpRequest.status==500) { document.getElementById(divToChange).innerHTML=httpRequest.responseText; //eval the lang variable from the php script. eval(document.getElementById("runscript").innerHTML); if(lang == "en") { document.getElementById(divToChange).innerHTML=' An error accured, please try again later'; } else { document.getElementById(divToChange).innerHTML
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Internet Explorer - Could not complete the operation due to error c00ce514 up vote 2 down vote favorite 1 The following http://stackoverflow.com/questions/12414982/ie9-ajax-error-could-not-complete-the-operation-due-to-error-c00c023f code works in chrome and in firefox, but gives the error "Could not complete the operation due to error c00ce514". I googled it, and found that it has something to do with setting the proper character set encoding, but I am loading an image with this (the url would end up being something like http://www.mysite.com/images/this_image.jpg). How do I get this to work in IE? var originalSRC = $("#bigImage").attr("src"); $(".tinyThumb").mouseenter(function(){ $("#oiLoad").html(''); var oldSRC http://stackoverflow.com/questions/4511485/internet-explorer-could-not-complete-the-operation-due-to-error-c00ce514 = $(this).attr("src"); var newSRC = "http://"+window.location.host+oldSRC.replace("tiny_thumbs/xtn_",""); $("#bigImage").load(newSRC,function(e){ $("#oiLoad").empty(); $("#bigImage").attr("src",newSRC); }); }); ajax internet-explorer xmlhttprequest share|improve this question asked Dec 22 '10 at 16:48 Atomix 97532040 1 Not realy an answer but I did notice you are not closing your img tag. $("#oiLoad").html(''); Should be $("#oiLoad").html(''); –Agile Jedi Dec 22 '10 at 16:56 @Agile: Actually, that is the answer. IE will choke om that. –SLaks Dec 22 '10 at 17:00 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote accepted Not realy an answer but I did notice you are not closing your img tag. $("#oiLoad").html(''); Should be closed with a backslash share|improve this answer edited Sep 26 '13 at 9:20 Drew Noakes 126k73392489 answered Dec 23 '10 at 16:28 Agile Jedi 1,6702914 add a comment| up vote 1 down vote As Agile Jedi said, you need to close the tag. share|improve this answer answered Dec 22 '10 at 18:51 SLaks 538k9313391510 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy
digital channels at scale Software Quality Test Studio Release better quality software faster Individual Products DevTools Web UI for ASP.NET AJAX UI for http://www.telerik.com/forums/microsoft-jscript-runtime-error-could-not-complete-the-operation-due-to-error-c00ce514 ASP.NET MVC UI for ASP.NET Core UI for PHP UI http://system-center.me/miscellaneous/internet-explore-firefox-ajax-could-not-complete-the-operation-due-to-error-c00ce514-message/ for JSP UI for Silverlight HTML5/JS Framework Kendo UI NativeScript Desktop UI for WPF UI for WinForms Mobile UI for NativeScript UI for Xamarin UI for UWP (Windows 10) UI for iOS UI for Android UI for Windows Universal UI for Windows Phone could not PRODUCTIVITY & QUALITY JustCode JustMock Testing Framework Debugging Fiddler JustDecompile JustTrace Reporting & Data Access Reporting Report Server Data Access DEPLOYMENT Modulus Mobile App Development Telerik Platform AppBuilder Analytics Backend Services Testing Test Studio Mobile Testing API Testing Digital Content & Experience Progress Sitefinity CMS Progress Sitefinity Digital Experience Cloud could not complete ENTERPRISE FREE TRIALS PRICING SUPPORT & LEARNING ABOUT US YOUR ACCOUNT Search Your Account Telerik Platform Telerik Forums / UI for ASP.NET AJAX Forum / General Discussions / Microsoft JScript runtime error: Could not complete the operation due to error c00ce514. Cancel The title field is required! UI for ASP.NET AJAX Resources Buy Try Feed for this thread 2 posts, 0 answers M Kumar 40 posts Member since: Apr 2008 Posted 21 Mar 2012 Link to this post 'I want do download the corresponding file when i click the grid Image button
'Here i paste my code. it shows this bug(shows in attachment)
Protected Sub ExplorerGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles VersionGrid.ItemCommand Dim objGridDataItem As GridDataItem = CType(e.Item, GridDataItem) Dim stringVersion As String stringVersion = objGridDataItem.Item("Version").Text Dim stringPath As String = Request.QueryString("filepath") Dim temppath As String = stringPath.Substring(0, stringPath.LastIndexOf("\")) Dim filename As String = stringPath.Substring(stringPath.LastIndexOf("\")
by sharon I've been working on some code which use Ajax for autocomplete implementing. to accomplish this mission I've created : Database (unicode_general_ci) HTML page which show the results of the autocomplete, encoded as UTF-8 with ‘Content-type: text/html; charset=utf-8' PHP file which used to query the Database, also encoded as UTF-8 with ‘Content-type: text/html; charset=utf-8' and "SET NAMES ‘UTF8′" query to the database. so.. as it sounds.. all the parts configured well for using UTF-8. so let's see… in Firefox.. the code is working great, in Internet Explorer, I'm getting the error : "Could not complete the operation due to error c00ce514", this error indicates that Microsoft XML Parser is having problems when parsing the AJAX response string. the reasons for this error are : the encoding of the requested file or the encoding of the sent string… the first reason could be solved by setting the charset with the header command… the second (which solved my problem..) is to encode the sent string. in my case I sent the string by GET method : the string that was sent to the "findtxt.php?str=" wasn't encoded in UTF-8 somehow so… I made a little change of the code like this : The encodeURIComponent() function encodes a URI component. This function encodes special characters. In addition, it encodes the following characters: , / ? : @ & = + $ # That's it, have fun. Posted in MiscellaneousTagged Ajax PHP Post navigation ←Opalis next release - more platform Support & System Center IntegrationIntegrating PHP in HTML files (Apache configuration)→ Leave a Reply Cancel reply Your email address will not be published. Required fields are marked *Comment Name * Email * Website About me… Blog By Sharon Abarbanel Categories Infrastructure & Management User Group (6) Miscellaneous (37) Opalis \ Orchestrator (21) OpsMgr (25) Recent Posts Semperis @CyberTech 2015 Backup, Backup, Backup… Backup!!! Windows Azure Active Directory interview at pCon about automation & or