Unable to get value of the property '1' when sorting columns (with solution)

Unable to get value of the property '1' when sorting columns (with solution)

burncharburnchar Posts: 118Questions: 12Answers: 0
edited August 2013 in KeyTable
For some time my application was getting a Javascript error:
[quote]Microsoft JScript runtime error: Unable to get value of the property '1': object is null or undefined[/quote]
on line 398 of KeyTable.js (as of 1.1.8.dev anyway) which reads:
[code]var iRow = _fnFindDtCell(nTarget)[1];[/code]

I figured it was a KeyTable problem that would be resolved, but it never went away, so it's probably my code.
I scoured ~700 lines of Javascript but found nothing wrong. Then I started to Firebug code alongside the closest example: http://editor.datatables.net/tutorials/keytable

To the point, my footers looked like this: "Content" whereas Allan's were properly using : "Content". My HTML was wrong.
Not only was KeyTables not buggy, it was the only software that alerted me to a standards violation in my own application.

(This post is intended for those that search for this issue in the future because the problem can be subtle).
This discussion has been closed.