Server Side Processing Error in IE7 and IE8
Server Side Processing Error in IE7 and IE8
Hi,
I am using server side processing in java and my application is working fine in firefox. However, i am getting "length is null or not an object" error message in IE7. The error is on line no 203 and char 41.
It looks like some bug in server side processing when XHTML is used...?
I am writing json to the browser stream as it is written in the example php script.
Shoaib
I am using server side processing in java and my application is working fine in firefox. However, i am getting "length is null or not an object" error message in IE7. The error is on line no 203 and char 41.
It looks like some bug in server side processing when XHTML is used...?
I am writing json to the browser stream as it is written in the example php script.
Shoaib
This discussion has been closed.
Replies
$('#cdrsTable').dataTable({"sPaginationType": "full_numbers", "iDisplayLength": 25, "bProcessing": true, "bServerSide": true,
"sAjaxSource": "${context}/services.get?type=cdrs&dateFrom=${param.dateFrom}&dateTo=${param.dateTo}"
});
I'd be willing to lay a fairly large bet that your json looks something like this:
[code]
[ 1, 2, 3, 4, ]
[/code]
Note that trailing comma. It should be:
[code]
[ 1, 2, 3, 4 ]
[/code]
It's a fairly common issue when outputting json from a loop. IE rejects it (and rightly so imho) while Firefox actually allows it. http://www.jsonlint.com is an excellent site for validating json string.
Regards,
Allan
I think i will need to disable the http cache for the sAjaxSource url...?
Shoaib
IE is known it have rather aggressive caching of Ajax response messages for GET requests. To "fix" it, try using a POST request: http://datatables.net/examples/server_side/post.html
Regards,
Allan