Javascript Error Unknown
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might
Unknown Runtime Error Innerhtml
have Meta Discuss the workings and policies of this site About unknown runtime error in javascript innerhtml in ie Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Object Expected Error In Internet Explorer 8
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, javascript error object expected just like you, helping each other. Join them; it only takes a minute: Sign up Debugging IE8 Javascript Replace innerHTML Runtime Error up vote 16 down vote favorite 4 function DeleteData(ID) { var ctrlId=ID.id; var divcontents=document.getElementById(ctrlId).innerHTML; var tabid=ctrlId.replace(/div/,'tab'); var tabcontents=document.getElementById(tabid).innerHTML; alert(document.getElementById(tabid).innerHTML); document.getElementById(tabid).innerHTML="
So here's a basic example of what I'm trying to do, as the
How To Fix Unknown Runtime Error
real one is long. The whole purpose of this was to avoid javascript error message popup going to the database again. There is a page that loads an article from a Java bean
Object Expected Error In Javascript Onclick
(J2EE that is) with a headline and body property. So I've placed a span around the headline with an id and the same with the body, I think http://stackoverflow.com/questions/555965/debugging-ie8-javascript-replace-innerhtml-runtime-error it's a div on the body, doesn't really matter, problem is the same. I wrote a javascript function to create a form, a text input for the headline, and a textarea for the body, all in a hidden div, and then the function submits the form to a popup and creates a printer friendly version of https://www.sitepoint.com/community/t/ie-unknown-runtime-error-with-innerhtml/3432 the page. I didn't want to have to retrieve the article from the database when I can just send it in the post. This works very well in Firefox, then I tried it in IE and got the very useful error "Unknown runtime error", thanks. Here's a small example that produces the same error.
Hello
World
/>