[thelist] dom gives me a headache
Rory.Plaire at wahchang.com
Rory.Plaire at wahchang.com
Fri Dec 14 14:39:42 CST 2001
rud-y?
+| for ie, which of the following is it?
+|
+| alert( document.all(foo).offsetLeft )
+| alert( document.all('foo').offsetLeft )
+| alert( document.all("foo").offsetLeft )
+| alert( document.all[foo].offsetLeft )
+| alert( document.all['foo'].offsetLeft )
+| alert( document.all["foo"].offsetLeft )
Hmmm... well, without knowing what the error actually is...
alert( document.all("foo").offsetLeft )
AND
alert( document.all["foo"].offsetLeft )
should work.
(Sayeth the MSDN horse's mouth
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/script
ing_elements_collections.asp#The_all_Collection_a )
Also, have you thought about document.getElementById()?
Course, doesn't work for NN 4.x browsers. So,
+| for navigator i'm going to have to use something like
+|
+| document.images['foo'].x
+|
yea, for NN 4.x.
<rory disposition="is there anything better than lunch with a cherished
friend?" alt="8)"/>
More information about the thelist
mailing list