H
Henri
Hello ppl,
I came accross this unusual problem. It seems that Opera's innerHTML does
not behave like IE's or Firefox's.
Say I have to change the content of a div. I use
document.getElementById('thediv').innerHTML = updated_html;
thediv has a border property so I can see what's going on. In IE and
Firefox, the content
of thediv is effectively replaced by updated_html. But with Opera (latest
version: 9.25)the content of the div is cleared and updated_html is
written underneath (ie OUTSIDE) thediv.
Obviously there's something I'm missing here. Can somebody enlighten me
on this issue?
Thanks
I came accross this unusual problem. It seems that Opera's innerHTML does
not behave like IE's or Firefox's.
Say I have to change the content of a div. I use
document.getElementById('thediv').innerHTML = updated_html;
thediv has a border property so I can see what's going on. In IE and
Firefox, the content
of thediv is effectively replaced by updated_html. But with Opera (latest
version: 9.25)the content of the div is cleared and updated_html is
written underneath (ie OUTSIDE) thediv.
Obviously there's something I'm missing here. Can somebody enlighten me
on this issue?
Thanks