Discussion:
IE8 null sends "null" bug!
(too old to reply)
Bengt Samuelsson
2009-12-30 17:29:51 UTC
Permalink
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.
rob^_^
2009-12-30 21:16:08 UTC
Permalink
Hi Bengt,

connect.microsoft.com is the Microsoft feedback and issue reporting portal.

Some MVP's in this newsgroup may be able to raise an issue ticket on your
behalf. This is the internetexplorer.security public newsgroup. Your issue
is best posted in a Visual Studio forum or at the Telerik forums.

However your description and explanation is very hard to understand. It is
very important that you state your issues clearly and if possible provide a
publicly accessible (validated) test case that highlights and isolates your
issue.

Have you read through the Telerik help files. It sounds like you are not
testing for the IsPostback in your Page_Load event before reading the query
parameter values.

target is not a good element Id value as it is also an attribute name.
Nevertheless your page load event should look something like

Page_Load

dim sTarget as string=request("target") & ""

if .IsPostback then
target.text = sTarget
end if

End Sub

If you are using Telerik RAD controls then you are using Active Server Pages
which uses Form Post methods. Your issue has nothing to do with javascript
or IE.

Regards.
Post by Bengt Samuelsson
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
document.getElementById(target).innerHTML = (content != null) ? content : "";
or
document.getElementById(target).value = (value != null) ? value : "";
document.getElementById(target).innerHTML = content;
or
document.getElementById(target).value = value;
An empty string is not null.
PA Bear [MS MVP]
2009-12-31 06:24:28 UTC
Permalink
Developer-specific resources include:

MSDN IE Development Forums <=post such questions here instead
http://social.msdn.microsoft.com/forums/en-US/category/iedevelopment/

IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx

HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/en-us/library/ms537623.aspx and

Cascading Style Sheets (CSS)
http://msdn2.microsoft.com/en-us/ie/aa740476.aspx

Expression Web SuperPreview for Internet Explorer (free, stand-alone visual
debugging tool for IE6, IE7, and IE8)
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=8e6ac106-525d-45d0-84db-dccff3fae677

Expression Web SuperPreview Release Notes
http://www.microsoft.com/expression/products/Web_SuperPreviewReleaseNotes.aspx

Validators:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/
Post by Bengt Samuelsson
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
""; or
document.getElementById(target).value = (value != null) ? value : "";
document.getElementById(target).innerHTML = content;
or
document.getElementById(target).value = value;
An empty string is not null.
Loading...