<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3809.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>You need to put it in quotes</FONT></DIV>
<DIV><FONT face=Arial size=2>if ( AverageStudentsObj != "undefined"
)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>By the way IE 5 does support
"getElementByID"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Peace</FONT></DIV>
<DIV><FONT face=Arial size=2>Lau<BR><BR></DIV></FONT>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:rpollard@apple.com" title=rpollard@apple.com>Robert
Pollard</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:javascript@LaTech.edu" title=javascript@LaTech.edu>[JavaScript
List]</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, December 10, 2003 11:47
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] RE: Undefined
is Undefined in IE 5</DIV>
<DIV><BR></DIV>I don't believe IE 5 supports node functions as in
"getElementByID"<BR><BR>I may be mistaken but I believe that could be the
problem.<BR><BR>HTH,<BR><BR>Robert<BR><BR>On Tuesday, December 9, 2003, at
04:17 PM, <A
href="mailto:bill.marriott@agric.nsw.gov.au">bill.marriott@agric.nsw.gov.au</A>
wrote:<BR><BR>
<BLOCKQUOTE><BR><?smaller>HI Everyone,<BR><BR>The following code works in IE
6 but falls over with the error "Undefined is Undefined"<BR>in IE 5.
Does anyone know what the actual problem is and is there a
workaround?<BR><BR>var AverageStudentsObj =
document.getElementById("AverageStudents");<BR> if (
AverageStudentsObj != undefined )<BR><BR>thanks<BR><BR>Bill
Marriott<BR>Analyst/Programmer<BR>Information Technology<BR>NSW
Agriculture<BR>Orange<BR><BR>Ph. 02 6391 3657<BR>Fax. 02 6391
3290<BR><BR><BR>This message is intended for the addressee named and may
contain confidential information. If you are not the intended recipient or
received it in error, please delete the message and notify sender. Views
expressed are those of the individual sender and are not necessarily the
views of their
organisation._______________________________________________<BR>Javascript
mailing
list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR><?/smaller></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Javascript mailing
list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BODY></HTML>