sAjaxSource should be called with similar aoData when bServerSide is false instead of true

sAjaxSource should be called with similar aoData when bServerSide is false instead of true

ehuang@okta.comehuang@okta.com Posts: 2Questions: 0Answers: 0
edited January 2011 in General
I got a sAjaxSource url that works very well when bServerSide is true as datatable will populate the aoData with things like column names, sort order, etc.

When I turn off bServerSide, I was expecting the sAjaxSource url to be called with similar aoData parameters, but instead aoData is hard coded to an empty array.

It would be nice to have aoData be populated here.

Line 2346
oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, [], function(json) {

that [] should be populated by code similar to _fnAjaxUpdate (starting at line 3222)

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    But what data would be needed to be passed to the server? All the filtering / sorting etc, is carried out on the client-side when bServerSide is set to false - so these parameters aren't needed. If you do want to pass parameters, you can use fnServerData to customise what is sent, for server-side processing, or just Ajax sourced data.

    Allan
  • ehuang@okta.comehuang@okta.com Posts: 2Questions: 0Answers: 0
    The most important ones are the columns.
This discussion has been closed.