Subj : Re: javascript sample not working - bug in mozilla? plz help To : netscape.public.mozilla.jseng,netscape.public.mozilla.dom From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Sat Jun 07 2003 07:07 pm stan k. wrote: > Just as a note to those looking in newsgroups - I also had to chagne > the following to get it to work: > > objDiv = divColl(i); > changed to: > objDiv = divColl[i]; In Mozilla and W3C DOM collections are variants of arrays. In IE they are special functions. This is the reason. why there the call operator is supported, but not on Mozilla neither any W3C conform implementation. > objDiv = eval(sDivID); > changed to > objDiv = document.getElementById(sDivID); This uses IE DOM instead of W3C DOM. -- Georg Maaß - bioshop.de D-93466 Chamerau, Roßbergweg 42 JavaScript, C++ Engineering - The ultimative DHTML engine: http://gml-modul.sourceforge.net - http://sourceforge.net/projects/gml-modul .