G
Greg Russell
Hello, in my PHP scripts I've incorporated the code from
http://www.webtoolkit.info/sortable-html-table.html to make the tables on
the delivered pages sortable by clicking on the column headers. Will someone
help me discover how to make the column footers also be a sortable link, as
some of my tables are quite large, and scrolling to the top to initiate a
sort is cumbersome when one has the bottom table footers right there.
The "tfoot" section is enabled by the addition in the <style> section of:
table tfoot {
cursor: pointer;
}
Although it enables the ability to invoke the javascript by clicking on the
table footers, the sort doesn't occur. I have determined that this is due to
a single line in the javascript code, but I can't seem to fathom how to
modify it so that both thead and tfoot (when clciked in the table) will
cause the sort:
var sortSection = this.thead; // enables sorting by clicking headers
or
var sortSection = this.tfoot; // enables sorting by clicking footers
Is there some way to make the var assignment so that either clicking the
headers or footers will cause the sort to happen, please?
http://www.webtoolkit.info/sortable-html-table.html to make the tables on
the delivered pages sortable by clicking on the column headers. Will someone
help me discover how to make the column footers also be a sortable link, as
some of my tables are quite large, and scrolling to the top to initiate a
sort is cumbersome when one has the bottom table footers right there.
The "tfoot" section is enabled by the addition in the <style> section of:
table tfoot {
cursor: pointer;
}
Although it enables the ability to invoke the javascript by clicking on the
table footers, the sort doesn't occur. I have determined that this is due to
a single line in the javascript code, but I can't seem to fathom how to
modify it so that both thead and tfoot (when clciked in the table) will
cause the sort:
var sortSection = this.thead; // enables sorting by clicking headers
or
var sortSection = this.tfoot; // enables sorting by clicking footers
Is there some way to make the var assignment so that either clicking the
headers or footers will cause the sort to happen, please?