IE problem with sorting and filtering

IE problem with sorting and filtering

yuradocyuradoc Posts: 2Questions: 0Answers: 0
edited November 2011 in General
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.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    is 'this' defined properly? try to output to the debugger.

    else see if you get a non-empty value with jQuery(this).html() instead of .text()
  • yuradocyuradoc Posts: 2Questions: 0Answers: 0
    Thanks for help.
    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}
This discussion has been closed.