![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| ||||
| ||||
|
|
"eBob.com" <eBob.com (AT) totallybogus (DOT) com> wrote: var parentwin = external.menuArguments; [...] for (iv in x) { var tablerows = x[iv].rows //alert(tablerows.length + " rows") // results in "'tablerows.length' is //var tablerows2 = x[iv].getElementsByTagName("tr") // results in "Object doesn't // support this property or method ?????? |
|
for (triv in tablerows) { alert("triv is \""+ triv + "\"; outerHTML:" + tablerows[triv].outerHTML) |
|
var marray = re.exec(tablerows[triv].outerHTML) |
|
//var marray = re.exec("<td align='center' class='class_18'>Name</td>") [...] Sorry, I forgot to specify that I run the script under IE 6.0. |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
One loose end ... I have done some more research and learned about Enumerators. I tried an Enumerator to step through the table rows and it seems to work. Is there any practical difference between ... for (var triv = 0, l = tablerows.length; triv < l; triv++) and ... var enumTableRows = new Enumerator(tablerows) for (;!enumTableRows.atEnd();enumTableRows.moveNext()) ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |