0x800a0259 - Javascript Runtime Error Unknown Runtime Error
Contents |
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 unknown runtime error innerhtml Learn more about Stack Overflow the company Business Learn more about hiring developers or unknown runtime error in javascript innerhtml in ie posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow
How To Fix Unknown Runtime Error
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 ASP.NET UpdatePanel Error htmlfile: Unknown runtime error, updatePanelElement.innerHTML=rendering up
Ie8 Table Innerhtml Unknown Runtime Error
vote 2 down vote favorite I get this error when debugging my ASP.NET web application after I trigger an UpdatePanel: htmlfile: Unknown runtime error and "updatePanelElement.innerHTML=rendering" is highlighted in a ScriptResource.axd file. asp.net ajax updatepanel share|improve this question edited Jan 11 '15 at 16:18 Boann 27k76196 asked Jan 13 '09 at 22:11 Zack Peterson 25.6k68174267 add a comment| 6 Answers 6 active oldest votes up vote 4 innerhtml ie8 down vote I have encountered the same issue. In my case Page (Table) was not designed properly. Here is the issue details in my scenario:
|
|
|
** |
|
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 http://stackoverflow.com/questions/441038/asp-net-updatepanel-error-htmlfile-unknown-runtime-error-updatepanelelement-in 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 why do I get htmlfile: Unknown runtime error JScript error up vote 0 down vote favorite I get this error thrown in line: displayElement.innerHTML = executor.get_responseData(); I http://stackoverflow.com/questions/5016321/why-do-i-get-htmlfile-unknown-runtime-error-jscript-error try to update the inner html of a div, with the data received from java. executor.get_responseData(); works well. how should I debug from here? Edit: I use this functions for updating the data: function GetWebRequest(getPage, HTMLtarget) { displayElement = $get(HTMLtarget); var wRequest = new Sys.Net.WebRequest(); wRequest.set_url(getPage); wRequest.set_httpVerb("GET"); wRequest.set_userContext("user's context"); wRequest.add_completed(OnWebRequestCompleted) wRequest.invoke(); } function OnWebRequestCompleted(executor, eventArgs) { if (executor.get_responseAvailable()) { displayElement.innerHTML = ""; if (document.all) { displayElement.innerHTML = executor.get_responseData(); } else // Firefox { displayElement.textContent += executor.get_responseData(); } } else { if (executor.get_timedOut()) { alert("Timed Out"); } else { if (executor.get_aborted()) alert("Aborted"); } } } I ude the functions above like: function pageLoad() { var name= document.getElementById("<%= SearchName.ClientID %>").value; var target = 'OnrcWebPart.aspx?SearchName=' + name; GetWebRequest(target, 'PeopleContent'); //I update the content inside div with PeopleContent id } I have this functions from th tutorial http://www.asp.net/ajax/videos/how-do-i-implement-the-incremental-page-display-pattern-using-http-get-and-post In the sample works well, but in my application it doesn't. Could it be because I use M
fair share of annoying Microsoft error messages, so I wasn't too suprised when I randomly hit the following Javascript error in IE8: Unknown runtime error Even better, if I switched to IE7 compatibility mode I got the old: [object error] Having tracked down the http://www.theogray.com/blog/2009/06/internet-explorer-unknown-runtime-error line that was causing the problem, it appears that the Javascript hook into the DOM is rather more strict (or maybe buggy!) when setting innerHTML than when using document.write. document.write The following line of code works and displays https://jadendreamer.wordpress.com/2009/06/02/internet-explorer-fix-unknown-runtime-error-using-innerhtml-ajax/ the expected output: document.write('
with
tag in IE, but there we go. Case closed I guess. Share| By Theo Gray on June 1, 2009 | Permalink | Comment Reader Comments Skip to form March 27, 2010, Kelly McIvor says:Thanks for the post! This was precisely what what happening for me. I was trying to replace innerHTML with a
element. Using two
did the trick. Kelly October 6, 2010, Mark Brodsky says: I had this same problem with the "Unknown Runtime Error" in IE 8 - code worked fine in Firefox and Safari... But, I was not illegally placing a block element into an inline or other element. I was simply updating the innerHTML of a SPAN within a surrounding DIV. So no problem, right?Pulled my hair out trying to figure out what
ajax request that sets an innerHTML value you sometimes get an unknown runtime error in Internet Explorer. Of course everything works fine in Firefox (why isn't Microsoft out of business yet?). Causes: Improperly nested or missing tags in the value you're trying to set to innerHTML. This includes things like: lists of
- or
- specified
tags that aren't nested properly missing a closing tag like