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.

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:
This is in my Body:
And this is in the Footer:
I don't know what's wrong, because all solutions I've found point to this. But why doesn't it sort?
regards,
Ed.
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.

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.
Hi GroteBeer,
We just worked all the way through this question in this thread:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=12&t=18793
Pay attention to the JHTML tags in the header code, and the hack in the connection.php file.
Hope that helps!
Best Regards,
Jonathan
We just worked all the way through this question in this thread:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=12&t=18793
Pay attention to the JHTML tags in the header code, and the hack in the connection.php file.
Hope that helps!
Best Regards,
Jonathan
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.
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.
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?
This topic is locked and no more replies can be posted.