Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table.rows not working in Netscape

Status
Not open for further replies.

gxwheel

Programmer
Jun 28, 2004
2
DE
The following webpage which uses Javascript to dynamically load and sort a table works fine in IE, but not in Netscape.


The Javascript Error in Netscape says state_data.rows is not a function.

All of the information I find says that this is a function, so not sure where to go from here. Any thoughts are appreciated.
 
Problems in this page happen because "()" is used instead of "[]" to access collection elements (table rows and cells).

Yet another commodity from Microsoft, I guess. :X
 

It also uses:

Code:
document.formSortOrder

instead of the more acceptable (and compatible):

Code:
document.forms['formSortOrder']

Dan
 
Thank your the tips. I thought about using the array designation for the collection [], but all the documentation I could find referred to (), including MSDN.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top