I am trying to update an Asp.Net server side div using javascript. From the html source I get the div to look as following :
<div id="ctl02_rptCorrectiveActions_ctl03_dvCAStaff" style="overflow: auto; height: 150px; visibility: visible; background-color: red"/>
And the javascript I am trying to update the div as following ;
try {
var div3 = document.getElementById("ctl02_rptCorrectiveActions_ctl03_dvCAStaff");
div3.innerHTML = "This is a test text";
}
catch (err) {
var txt = "Error description: " + err.message + "\n\n";
txt += "Click OK to continue.\n\n";
alert(txt);
}
When I try this I get a javascript error saying : "Unknown runtime error"
It's working ok on FF,Chrome and IE9/10 but only happens on IE8. Can anybody please shed me any light of what wrong I am doing ?