Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2012, 01:53 PM   PM User | #1
will43
New to the CF scene

 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
will43 is an unknown quantity at this point
jquery table sorter and dynamic table

hi guys i having some problems with jquery plugin table sorter on a dynamic table.
if i use it on a regular html table it works fine,but on my dynamic table its not working.
if someone could look at my code and see if i done something wrong i would appreciate it .

Thanks will43
Code:
<script type="text/javascript" src="table sorter/jquery.tablesorter/jquery-latest.js" ></script> 
<script type="text/javascript" src="table sorter/jquery.tablesorter/jquery.tablesorter.js" ></script>
<script  type="text/javascript"/>
$(document).ready(function()    
 {   
 $("#myTable").tablesorter();    
  }
   ); 
</script>

 <form id="form1" name="form1" method="post" action="">
      <label for="Position">Position</label>
      <select name="Position" id="Position">
        <option>QB</option>
        <option>HB</option>
        <option>FB</option>
        <option>WR</option>
        <option>TE</option>
        <option>RG</option>
        <option>RT</option>
        <option>C</option>
        <option>LG</option>
        <option>LT</option>
        <option>CB</option>
        <option>LB</option>
        <option>SS</option>
        <option>FS</option>
        <option>DE</option>
        <option>DT</option>
        <option>P</option>
        <option>K</option>
      </select>
      <input type="submit" name="Summit" id="Summit" value="Submit" />
    </form>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <table width="950" border="1" cellpadding="3" cellspacing="3" class="tablesorter" id="myTable">
      <thead>
      <tr>
        <th bgcolor="#FF0000">id</th>
        <th bgcolor="#FF0000">Team</th>
        <th bgcolor="#FF0000">FirstName</th>
        <th bgcolor="#FF0000">LastName</th>
        <th bgcolor="#FF0000">Position</th>
        <th bgcolor="#FF0000">Year</th>
        <th bgcolor="#FF0000">Overall</th>
        <th bgcolor="#FF0000">Speed</th>
      </tr>
      </thead>
      <?php do { ?>
      <tbody>
        <tr>
          <td bgcolor="#FFFF00"><?php echo $row_Recordset1['id']; ?></td>
          <td bgcolor="#FFFF00"><?php echo $row_Recordset1['Team']; ?></td>
          <td bgcolor="#FFFF00"><?php echo $row_Recordset1['FirstName']; ?></td>
          <td bgcolor="#FFFF00"><?php echo $row_Recordset1['LastName']; ?></td>
          <td bgcolor="#FFFF00"><?php echo $row_Recordset1['Position']; ?></td>
          <td bgcolor="#FFFF00"><?php echo $row_Recordset1['Year']; ?></td>
          <td bgcolor="#FFFF00"><?php echo $row_Recordset1['Overall']; ?></td>
          <td bgcolor="#FFFF00"><?php echo $row_Recordset1['Speed']; ?></td>
        </tr>
        </tbody>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>
will43 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:37 PM.


Advertisement
Log in to turn off these ads.