![]() |
'TypeError: xxx is not a function' is thrown only in Firefox
Hi
I am trying to go through rows of table using I am able run through the table and review each row in IE, Chrome it works perfectly. The same code when viewed in FireFox throws 'TypeError: trows is not a function' error. The error occurs when I try to get the row id by using 'trows(i).id' while 'trows.length' works fine. I am foxed!! Any way to get over this. The code HTML page is Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Ravi |
You're trying to call it like a function (with parentheses), but it isn't a function, hence the error.
What you really want to do is access the entries of an array-like object, and that you do with brackets: Code:
alert(trows[i].id); |
Thanks It Worked
Hi
Thanks. It worked Regards Ravi |
| All times are GMT +1. The time now is 11:11 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.