Again, a sorting question

GroteBeer 21 Aug, 2010
Hi,

I've got a problem that's been discussed a few times already, but I can not get it to work.
I've got a table see image below, that I use that I want to be sortable by column.
Again, a sorting question image 1

When I click one of the column headers, there is an icon that indicates desc or asc sorting for that colum, but the sorting doesn't happen.

This is in my Header:
<?php
  $doc =& JFactory::getDocument();
  $doc->addScript( "/includes/js/sorttable.js" );
?>

<table class="sortable"; style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr>
      <td width=200; style="font-weight: bold;">Naam</td>
      <td width=200; style="font-weight: bold;">Brouwerij</td>
      <td width=75; style="font-weight: bold;">Waardering</td>
      <td width=100; style="font-weight: bold;">Datum</td>
    </tr>
  </tbody>
</table>
<div class="clr" style="border-bottom: 3px solid #222; padding: 3px; margin-bottom: 10px;"></div>


This is in my Body:
    <table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
      <tbody>
        <tr<?php if ($i % 2) echo 'style="background-color: "#696969;"';?>>
          <td  width=200; style=" font-weight: bold; font-size=16;"><a href='/index.php?option=com_chronocontact&chronoformname=show&cf_id={cf_id}' >{Naam}</a></td> 
          <td  width=200; style="font-weight: bold; font-size=16;">{Brouwerij}</td> 
          <td  width=75; style="font-weight: bold; font-size=16;">{Waardering}</td>
          <td  width=100; style="font-weight: bold; font-size=16;">{Proefdatum}</td>

        </tr>
      </tbody>
    </table>

    <?php $i++ ?>


And this is in the Footer:
<br><br><br><br>
<div align="center">{pagination}</div>
<br><br><br><br>


I don't know what's wrong, because all solutions I've found point to this. But why doesn't it sort?

regards,

Ed.
GroteBeer 24 Aug, 2010
Hi Jonathan,

The hack, mentioned in the thread did the trick.
Greyhead contacted me with the same info, and now it works like a charm.

Regards,

Ed.
mark.harkins 24 Aug, 2010
I didn't know where to post this question but please help me. Can you help me with an extension for Chrono Connectivity that can help me make a report from the database?
GreyHead 25 Aug, 2010
Hi mark.harkins ,

What kind of a report?

If you want a list of entries then you can do that with ChronoConnectivity.

Bob
This topic is locked and no more replies can be posted.