Windows Vista Tips

Windows Vista Tips > Newsgroups > Internet Explorer > IE8 null sends "null" bug!

Reply
Thread Tools Display Modes

IE8 null sends "null" bug!

 
 
Bengt Samuelsson
Guest
Posts: n/a

 
      12-16-2009

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 the same as null.

 
Reply With Quote
 
 
 
 
PA Bear [MS MVP]
Guest
Posts: n/a

 
      12-16-2009
Developer-specific resources include:

MSDN IE Development Forums <=post such questions here instead
http://social.msdn.microsoft.com/for...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/d...b-dccff3fae677

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

Validators:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Client - since 2002
www.banthecheck.com


Bengt Samuelsson wrote:
> 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 the same as null.


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NdisOpenConfigurationKeyByIndex returns KeyName not NULL terminate Daniel Windows Vista Drivers 1 10-25-2009 02:34 AM
Re: "Error: 'null' is null or not an object" when trying to view video Robert Aldwinckle Windows Vista Performance 1 12-18-2007 05:32 PM
HELP sfc /scannow William Beard Windows Vista Performance 17 05-11-2007 04:28 AM
Problem with WMI in WinPE - null: Invalid Syntax Error Aaron Wright Windows Vista Installation 2 04-18-2007 07:09 AM
ActiveSync 4.1, Calendar and "Processing" Dale Reeck ActiveSync 10 12-20-2005 01:44 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59