NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ccordes on November 01, 2007, 06:17:26 AM

Title: is sorttable css class hard-coded in template?
Post by: ccordes on November 01, 2007, 06:17:26 AM
Hi

Why does the class of the table change depending on whether I select to have none,client-side or server-side sorting on a table?
The look of the table shouldn't change with the function unless I need it to. In this case the template seems to be taking over.
Is there a reason for this that I am not getting?

Chris
Title: Re: is sorttable css class hard-coded in template?
Post by: Bruce on November 01, 2007, 10:22:11 PM
Hi Chris,

The client-side sorting script was one of the first I used, and while good, it's proven to be slightly less flexible than I'd hoped for.

To cut a fairly long story short, the client side script "kicks in" when it sees a table with the sortable class. So client-side is fixed to "sortable". It's on my list of things to re-visit, but in the meantime I'd recommend you stick with the server-side script.

Incidentally, there are other issues with the client-side script - most notably that it doesn't "remember" the sort order you last chose.

Cheers
Bruce
Title: Re: is sorttable css class hard-coded in template?
Post by: ccordes on November 02, 2007, 07:02:12 AM
I only use it on file loaded tables. I didn't notice that the sort was dependent on the class selector. Sounds dangerous <g>