ここで説明されている tablesorter プラグインを使用して、何時間もの間、テーブルに並べ替えを実装しようとしています。しかし、私は自分が間違っていることを理解できないようです。与えられた正確な例に従おうとしていますが、うまくいきません。
私のコードは次のようになります。
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="http://mottie.github.com/tablesorter/js/jquery.tablesorter.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("myTable").tablesorter();
}
);
</script>
</head>
<body>
<cfoutput>
<table id="myTable" class="tablesorter">
<thead>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Email</th>
<th>Due</th>
<th>Web Site</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>jsmith@gmail.com</td>
<td>$50.00</td>
<td>http://www.jsmith.com</td>
</tr>
<tr>
<td>Bach</td>
<td>Frank</td>
<td>fbach@yahoo.com</td>
<td>$50.00</td>
<td>http://www.frank.com</td>
</tr>
<tr>
<td>Doe</td>
<td>Jason</td>
<td>jdoe@hotmail.com</td>
<td>$100.00</td>
<td>http://www.jdoe.com</td>
</tr>
<tr>
<td>Conway</td>
<td>Tim</td>
<td>tconway@earthlink.net</td>
<td>$50.00</td>
<td>http://www.timconway.com</td>
</tr>
</tbody>
</table>
</cfoutput>
最初にファイルをダウンロードし、絶対パスを指定しましたsrc
が、それも機能しませんでした。これを .cfm (ColdFusion) ファイルで使用しようとしています。
何が起こっているのかについて何か意見はありますか?