Changes committed
to SVN.
Paul, (or anyone else crossing this post) to know more as to how the column sort handing is accomplished:
- The desired columns to have sorting capability must have the tag <th class="ascending"> applied.
- The file that works with that CSS class is: javascripts/MiscFunctions.js.
- At the bottom of the MiscFunctions.js file, the window.onload event is set to a function named initial.
- Inside the bottom of the initial function is where the <th> tags are retrieved.
- All the discovered <th> tags are looped to find any that have the ascending CSS presence, which is determined by the element's className property in javascript, and sets a function named SortSelect to the <th> element's onclick handler.
- The SortSelect function handles the sorting when a column name (or column heading) is clicked!
TIP 1: Note that a click anywhere on a column name (specified to sort) will trigger sorting. The small sort indicator is present for appearance and does not have any event handling.
TIP 2: Know that the sort handling expects all the rows to have the
same number of columns.