javascript - jQuery Tablesorter cannot detect which header was clicked in a dynamically created table -
i attempting turn dynamically created table .tablesorter object. when apply $('table').tablesorter, works fine (even in debug mode, detects number of rows , parser each column).
however, when clicking on 1 of headers, "uncaught typeerror: cannot read property 'type' of undefined." i've traced through tablesorter code, , turns out there array within tablesorter code called sortlist. sort list contains 2 numbers, first beingness number of column beingness sorted by, sec whether sort ascending or descending. whatever reason, first number comes "undefined" within code. if manually set sortlist[0][0] (it's 1d matrix) number, sorting works on column.
i have explicitly taken generated html out of browser, pasted new document, , sorting works fine on version. result i'm suspicious error comes fact entire table (the entire document in fact) created dynamically javascript.
i've spent days on , totally @ wits end. seems guy had similar problem, went unresolved: how phone call jquery table sorter on table getting loaded dynamically
javascript jquery
No comments:
Post a Comment