Help sorting an HTML table

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

joeymilan89

Thread Starter
Joined
Feb 20, 2006
Messages
47
Hi, I've been trying to sort an HTML table using every script i've come upon over the internet. Nothing works. The latest has been sorttable.js, but I get an error from it. I am using the newest Firefox and IE and they both show the same problem. Here is my coding, please help.

Source: http://www.freewebs.com/clancrit

Code:
<html>

<head>

<title>Clan CRiT</title>

<script src="sorttable.js"></script>

</head>

<body bgcolor="333333" text="white" link="white" alink="white" vlink="white">

<table border="0" bordercolor="222111"  cellspacing="1" cellpadding="1" width="100%" bgcolor="black">

<tr>

<td><font face="verdana" size="4" color="FF9900"><center>Clan CRiT Player Statistics</center></font></td>

</tr>

</table>

</br>

<table class="sortable" id="table0" border="0" width="100%" cellpadding="1" cellspacing="1" bgcolor="black">

<tr>
<th bgcolor="123252" align="center"><font face="verdana" size="2" color="yellow">Clan Rank</font></th>
<th bgcolor="123252" align="center"><font face="verdana" size="2" color="yellow">Player</font></th>
<th bgcolor="123252" align="center"><font face="verdana" size="2" color="yellow">Games Played</font></th>
<th bgcolor="123252" align="center"><font face="verdana" size="2" color="yellow">Wins</font></th>
<th bgcolor="123252" align="center"><font face="verdana" size="2" color="yellow">Losses</font></th>
<th bgcolor="123252" align="center"><font face="verdana" size="2" color="yellow">Hero Kills</font></th>
<th bgcolor="123252" align="center"><font face="verdana" size="2" color="yellow">Unit Kills</font></th>
<th bgcolor="123252" align="center"><font face="verdana" size="2" color="yellow">Razes</font></th>
</tr>

<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Chieftain</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>lost.my.skill.</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>3</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>2</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>10</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>127</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>10</center></font></td>

</tr>

<tr>
<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Shaman</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>L0.0K</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>3</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>2</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>9</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>188</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>

</tr>

<tr>
<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Grunt</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>sHaReUnItSpLz</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>2</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>52</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>

</tr>

<tr>
<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Grunt</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>fArmA_</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>3</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>15</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>

</tr>

<tr>
<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Grunt</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>LincoLn</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>49</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>

</tr>

<tr>
<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Grunt</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>LimitBreaks</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>84</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>5</center></font></td>

</tr>

<tr>
<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Grunt</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>Gawdly.</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>2</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>2</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>12</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>174</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>5</center></font></td>

</tr>

<tr>
<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Grunt</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>PhillyWilly</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>42</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>2</center></font></td>

</tr>

<tr>
<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Grunt</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>Ulz</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>2</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>52</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>4</center></font></td>

</tr>

</tr>

<tr>
<tr onmouseover="this.style.backgroundColor = '#123241';" onmouseout="this.style.backgroundColor = '#000000';">
<td><font face="verdana" size="2" color="FF9900"><center>Grunt</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>Jiyun-</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>0</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>

<td><font face="verdana" size="2" color="FF9900"><center>1</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>23</center></font></td>
<td><font face="verdana" size="2" color="FF9900"><center>6</center></font></td>
</tr>

</table>

<table>

<tr>
<td colspan="7" align="center"><em><font face="verdana" size="1">Coded by lost.my.skill. - 2007(c)</font></em></td>
</tr>

</table>
 
Joined
Apr 30, 2006
Messages
333
It will sort once only. You have to reload the page to do it again. Thats what wrong. Dont know how to fix it though.
 

joeymilan89

Thread Starter
Joined
Feb 20, 2006
Messages
47
Does anyone? Because it gives an error at the bottom and it worked on the sites I got the sort table code from.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top