I'm loving the table sorting plugin and I'm trying to get a
"sorting..." notification going. I've found this demo site:
http://bitten.ufsoft.org/demo/ that has it working. It seems you have
to attach the functions you want run on sortStart/Stop.

I've added the methods like so so my site's js file.

$(document).ready(function() {

    $(document).sortStart(function(){
        $("#sort_running").show();
    }).sortStop(function(){
        $("#sort_running").hide();
    }
    );

    // code for the tablesorting on the results page
    $(document).ready(function() {
        $('#sortable_results').tableSorter({
                sortColumn: 'name',         // Integer or String of the name
of the column to sort by.
                sortClassAsc: 'headerSortUp',       // Class name for
ascending sorting action to header
                sortClassDesc: 'headerSortDown',    // Class name for
descending sorting action to header
                headerClass: 'sortable',                    // Class name for
headers (th's)
                stripingRowClass: ['odd','even'],   // Class names for
striping supplyed as a array.
                stripeRowsOnStartUp: true,       // Strip rows on tableSorter
init.
                minRowsForWaitingMsg: 2
        })
    });

});

I'm just trying to start out with show/hide a div for now. It will not
run though. Any tips on what I might be missing? I can't find any real
docs on the tablesorter site

Reply via email to