Having problems trying to insert an ajax response which is an html block into an IE 8 element using innerHTML
Hi everyone. As my titles say I am having problems with IE8 and innerHTML. For some reason, when I make an ajax call that returns an html block and tries to insert it into an element using innerHTML, the browser gives me an "Unknown error code: 0" error.
The interesting part of this is that if there is no html element in the post response, innerHTML works. My code looks like this:
setTimeout(function() {
element.innerHTML = context.response.message;
}, 1000).bind(context)
WORKING:
context.response.message = 'String';
Does not work:
context.response.message = '<p>String</p>';
+2
a source to share