IE problem with sorting and filtering
IE problem with sorting and filtering
Hello.
I use dataTables with columnFilter plugin. I have filter altering for one column and sorting.
All browsers work properly except IE7-9.
Example of one sorting function (I need to use it with numeric sType):
------------------------
jQuery.fn.dataTableExt.afnSortData['dom-a'] = function (oSettings, iColumn) {
var aData = [];
jQuery('td:eq('+iColumn+') a', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () {
status = jQuery(this).text();
aData.push(status);
});
return aData;
}
------------------------
I had debug using IE debugger and there is some problem with namespace, becouse status variable is always empty.
Culd you help me with such pb, becouse all other browsers work properly.
I use dataTables with columnFilter plugin. I have filter altering for one column and sorting.
All browsers work properly except IE7-9.
Example of one sorting function (I need to use it with numeric sType):
------------------------
jQuery.fn.dataTableExt.afnSortData['dom-a'] = function (oSettings, iColumn) {
var aData = [];
jQuery('td:eq('+iColumn+') a', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () {
status = jQuery(this).text();
aData.push(status);
});
return aData;
}
------------------------
I had debug using IE debugger and there is some problem with namespace, becouse status variable is always empty.
Culd you help me with such pb, becouse all other browsers work properly.
This discussion has been closed.
Replies
else see if you get a non-empty value with jQuery(this).html() instead of .text()
After changing status to _status code starts working.
Debugging jQuery(this).text() and jQuery(this).html() calls tells me that they contain correct values.
But I have also one pb in IE7 - select doesn't appears there.
This is defined in columnFilter settings:
{type: "select", values: Drupal.settings.filter_values}