ie7 and ie8 Unable to get value of the property 'sName'

ie7 and ie8 Unable to get value of the property 'sName'

bradley32bradley32 Posts: 16Questions: 0Answers: 0
edited July 2011 in General
Hi JQDT!
I am trying to build a table and everything works on all browsers except ie7 and ie8.

Here is the error:

SCRIPT5007: Unable to get value of the property 'sName': object is null or undefined

Here is the JS code:
[code]
var jsonData = [];

for (var i = 0; i < docs.length; i++) {
var obj = docs[i];

var row = [];

row.push('');

for (var j = 1; j < columns.length; j++) {

var value = obj[columns[j].sName];
console.log(value);
row.push(value);
}

jsonData.push(row);
};
[/code]
My only thought is that the JSON response had a loose comma somewhere but I ran it through jsonlint and it came back valid.

Any ideas on this nasty lil' thing?

Thanks!
Brad
This discussion has been closed.