Server-side processing, sent parameters in hungarian notation instead of camelCase

Server-side processing, sent parameters in hungarian notation instead of camelCase

James DebugJames Debug Posts: 2Questions: 0Answers: 0

Hi,

I'm working on the implementation of DataTable (1.10.3) with server-side processing.

According to the manual (http://datatables.net/manual/server-side), sent parameters are such as:

  • draw
  • start
  • length

But i keep getting the parameters in hungarian notation:

  • sEcho
  • iDisplayStart
  • iDisplayLength

I tried to find a way to force the camelCase format but no luck.

How is this supposed to be configured?

James

Replies

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    edited October 2014

    Hi James,

    You are probably using sAjaxSource to specify the Ajax url rather than the newer ajax parameter. The old style parameter forces the old style parameters for backwards compatibility. More information in the manual.

    Allan

  • James DebugJames Debug Posts: 2Questions: 0Answers: 0

    Hey Allan,

    Thanks to your link i finally fixed it by adding the following line:

    $.fn.dataTable.ext.legacy.ajax = false;

    Thanks for your help!

    James

This discussion has been closed.