Message Thread: |
View All MessagesBack to WebFX |
Thanks for reminding me about this. I've added the workaround (slightly modified) and uploaded version 1.04 erik ________________________________________________________ Erik, chipple recommends the following change: That certainly won't be a big performance hit. Just change the .headerOnClick method to this: SortableTable.prototype.headerOnclick = function (e) { // find TD element var el = e.target || e.srcElement; while (el.tagName != "TD") el = el.parentNode; this.sort(SortableTable.msie ? this.getCellIndex(el) : el.cellIndex); }; and add this new .getCellIndex method: SortableTable.prototype.getCellIndex = function (c) { var aoRowTds = c.parentNode.getElementsByTagName("TD"); for (var i = 0; aoRowTds[i] != c && i < aoRowTds.length; i++); return i; }; and this will make it work in IE whether your table has hidden columns or not. The change doesn't affect other browsers. Can you add this change to sortabletable code ? |