Bengt Samuelsson
2009-12-30 17:29:51 UTC
I can't find out how to send a bug report! OK!
Here it is! I have a homepage where I using AJAX teknik to get data from an
database back to for ex
<input type="text" name="adress" id="adress" size="35" value="">
or to
<div id="Fabrikat_namn"></div>
The Problem with IE8 is there is not am null "\0" but the string "null" when
the real value is just null. I can se this as an serius bug in javascript in
IE8 Have changed a bit besouse of this bug:
document.getElementById(target).innerHTML = (content != null) ? content : "";
or
document.getElementById(target).value = (value != null) ? value : "";
It shuld be this code:
document.getElementById(target).innerHTML = content;
or
document.getElementById(target).value = value;
An empty string is not null.
Here it is! I have a homepage where I using AJAX teknik to get data from an
database back to for ex
<input type="text" name="adress" id="adress" size="35" value="">
or to
<div id="Fabrikat_namn"></div>
The Problem with IE8 is there is not am null "\0" but the string "null" when
the real value is just null. I can se this as an serius bug in javascript in
IE8 Have changed a bit besouse of this bug:
document.getElementById(target).innerHTML = (content != null) ? content : "";
or
document.getElementById(target).value = (value != null) ? value : "";
It shuld be this code:
document.getElementById(target).innerHTML = content;
or
document.getElementById(target).value = value;
An empty string is not null.