HighDots Forums  

getElementByID undefined in IE 6?

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss getElementByID undefined in IE 6? in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ezmiller
 
Posts: n/a

Default getElementByID undefined in IE 6? - 01-08-2006 , 02:21 PM






Hi,
I am trying to use the getElementByID method, like this...

document.getElementByID("tableDiv").appendChild(.. .);

But it is returning an error "Object doesn't support this property or
method." I know it is not the appendChild method, becuase I also ran
the code without the appendChild method...

I tried to see if the method was dfined by running the following line:

alert(document.getElementByID)...but this returned "undefined".

As far as I can tell, this method should be supported in IE5 and
later...

Any insights??

Ethan


Reply With Quote
  #2  
Old   
Wayne Dobson
 
Posts: n/a

Default Re: getElementByID undefined in IE 6? - 01-09-2006 , 04:42 AM






"ezmiller" <ethanzanemiller (AT) gmail (DOT) com> wrote

Quote:
Hi,
I am trying to use the getElementByID method, like this...

document.getElementByID("tableDiv").appendChild(.. .);

But it is returning an error "Object doesn't support this property or
method." I know it is not the appendChild method, becuase I also ran
the code without the appendChild method...

I tried to see if the method was dfined by running the following line:

alert(document.getElementByID)...but this returned "undefined".

As far as I can tell, this method should be supported in IE5 and
later...

Any insights??
Try: "getElementById"

--
Wayne
"Aka Dobbie the House Elf."




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.