What is the correct use of sAjaxSource and fnServerData with the current API?

What is the correct use of sAjaxSource and fnServerData with the current API?

ExleyExley Posts: 2Questions: 1Answers: 0

Hi,

I've been able to find the equivalent options for the data table current API under http://datatables.net/reference/option/

I haven't found a solution to replace what seems to be the old sAjaxSource and fnServerData options. Everything workd foine with the old options but I was just wondering if there is an equivalent to these on the new api.
Can anyone help?

Thanks in advance.

This question has accepted answers - jump to:

Answers

  • RpiechuraRpiechura Posts: 98Questions: 3Answers: 14
    Answer ✓

    The old style still works just fine, so you don't have to change to the new way of doing things if you are happy with the way things work. Behind the scenes it appears to me that it gets translated into the old syntax anyway.

    However, to answer your question I believe that you're looking for http://datatables.net/manual/server-side. The first example (about half way down) shows both of those.

  • RpiechuraRpiechura Posts: 98Questions: 3Answers: 14
    Answer ✓

    As far as the fnServerData it's also in Ajax (which is why I said both are there) further information is available at http://datatables.net/reference/option/ajax. It shows using fnServerData as you'd expect to see it instead of just talking about it in plain words.

  • ExleyExley Posts: 2Questions: 1Answers: 0
    edited May 2014

    Thanks a lot. Found what I was looking for.

This discussion has been closed.