How to catch the aaSorting column

How to catch the aaSorting column

tgptgp Posts: 13Questions: 0Answers: 0
edited May 2009 in General
Hi Allan, its me again.

I show my table and it can be sorting on the 7 columns, on each cell I have a link to other page to show the full datails of the product, but if the user sorting the table and then go to the product page, when he/she back to the table it sorting by the default column.

How can I catch the sorting column and send this value to the server as a Get or Post variable?

I just need the column number to put it on my ajax soruce like this:

"sAjaxSource" : 'http://www.mydomain.com/myproducts?product=xxx&sorting=column_numer',

where column numbres is the column that the user sort the table

Thanks

Replies

  • tgptgp Posts: 13Questions: 0Answers: 0
    I found what I was looking for on the examples. (DataTables state saving example)
    but may be was intereting to know how do that.

    :D
This discussion has been closed.