Note that there are some explanatory texts on larger screens.

plurals
  1. POsort by all column headings
    primarykey
    data
    text
    <p>I have a table which is dynamically generated upon clicking a search button as follows:</p> <pre><code>puts "&lt;table class=\"resultsTable\"&gt;" puts "&lt;tr&gt;&lt;th colspan=\"10\" class=\"head\"&gt;Search Results&lt;/th&gt;&lt;/tr&gt;" puts "&lt;tr&gt;" puts "&lt;th&gt;&lt;/th&gt;" puts "&lt;th&gt;App&lt;/th&gt;" puts "&lt;th&gt;Name&lt;/th&gt;" puts "&lt;th&gt;Region&lt;/th&gt;" puts "&lt;th&gt;Market&lt;/th&gt;" puts "&lt;th&gt;Language&lt;/th&gt;" puts "&lt;th&gt;Function&lt;/th&gt;" puts "&lt;th&gt;LOB&lt;/th&gt;" puts "&lt;th&gt;Term&lt;/th&gt;" puts "&lt;th&gt;Call&lt;/th&gt;" puts "&lt;/tr&gt;" puts "&lt;tr&gt;" puts "&lt;td id=\"$cellID\"&gt;" puts "&lt;img src=\"images/magnifier.gif\" style=\"cursor:pointer\" onclick=\"showRouting({'spec':'${specific}', 'id':'${mkt_id}', 'name':'${mkt_name}', 'xfer':'${xfertype}', 'cell':'${cellID}'})\"&lt;/img&gt;" puts "&lt;/td&gt;" puts "&lt;td&gt;$level&lt;/td&gt;" puts "&lt;td&gt;$name&lt;/td&gt;" puts "&lt;td&gt;$reg_name&lt;/td&gt;" puts "&lt;td&gt;$link&lt;/td&gt;" puts "&lt;td&gt;$lang&lt;/td&gt;" puts "&lt;td&gt;$func&lt;/td&gt;" puts "&lt;td&gt;$lob&lt;/td&gt;" puts "&lt;td&gt;$term&lt;/td&gt;" puts "&lt;td&gt;$call&lt;/td&gt;" puts "&lt;/tr&gt;" </code></pre> <p>Can I have some kind of sorting enabled so that I can sort by each column(By App,Name,etc.)? I have seen some sort of jquery table sorter and other things, but I am not able to do that with my code. Can someone please tell me how i would go about doing this?</p> <p>what does the [0,0][1,0] mean? How would i modify my code accordingly?:</p> <pre><code>$(document).ready(function() { $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} ); } ); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload