I've got some javascript code which works perfectly well in windows on IE 6.0 but does not run on a Mac system 9.x running IE 5.0
The problem seems to be when I am referring to a collection of elements--in this case the collection of the rows of a table.
For example, I have a table (id="searchtable"), and I use this expression to give the number of rows:
document.all.searchtable.rows.length
This works fine in windows. On the Mac it gives a "0" result no matter the size of the table.
Also, I'm processing each row with a for loop that changes the display characteristic:
document.all.searchtable.rows(i).style.display=""
Again, this works fine in Windows. On a Mac, it gives the error message that "document.all.searchtable.rows(i) is not an object".
Anybody got any ideas as to what's going on?
The problem seems to be when I am referring to a collection of elements--in this case the collection of the rows of a table.
For example, I have a table (id="searchtable"), and I use this expression to give the number of rows:
document.all.searchtable.rows.length
This works fine in windows. On the Mac it gives a "0" result no matter the size of the table.
Also, I'm processing each row with a for loop that changes the display characteristic:
document.all.searchtable.rows(i).style.display=""
Again, this works fine in Windows. On a Mac, it gives the error message that "document.all.searchtable.rows(i) is not an object".
Anybody got any ideas as to what's going on?