Is there an alternative to innerHTML? – issue on Blackberry browser
Blackberry 4.6 browser does not seem to use innerHTML properly.
Instead of replacing contents, it appends contents!
function load_activities(){
x$('#dummy').xhr('program.php',{
method:'post',
data: 'action=list'.
callback: function(){
document.getElementById("status2").innerHTML = this.responseText;
}
});
How about cloning the node without children and then adding the new content?
I have no way to test this, so I don’t know for sure that
cloneNodewill work as expected and only copy the tags and attributes. Hope it helps.