Having some trouble having dataTables sort date fields (which have {"sType":"date"}
. The null
sorting type (which just sorts the data as if it's a plain string) works fine in IE8.
Works in IE 9 & 10, as well as latest versions of Chrome, Safari, Firefox. This app is not used on mobile clients, so I didn't test it there.
Is there something special about IE8 that I need to be looking into? There are no errors on the JavaScript console in IE8, so I'm a little stumped as to where to look. Checked the dataTables docs and search around SO, but have yet to find anything IE8-specific.
UPDATE:
Here's the JavaScript I'm using to initialize my datatable.
//sprv results table
$("#sprv_report_table").livequery(function(){$(this).dataTable({
"aoColumns": [{"sType":"date"},null,null,null,null,{"sType":"date"}],
"iDisplayLength": 10,
"sPaginationType": "full_numbers"
});});1
Since the datatables code does get applied to the table, and I can sort other columns, I don't have any reason to believe that this event isn't getting fired - it seems rather obvious that it is being fired by the browser.
Try something like this:
See reference on
mData
usage here: http://datatables.net/ref