Multiple server-side calls on data tables initialization
Multiple server-side calls on data tables initialization
vdavidoff
Posts: 3Questions: 0Answers: 0
Hi,
I'm just getting started with data tables. So far things are going pretty smoothly, but I am experiencing some behavior that concerns me. I don't think that I'm doing anything that would be causing this, but I'm not sure, and I can't find anything about it in the forums.
I am using server side processing and on initial page load (data tables initialization) I see our server side script get called 3 times. I don't see any reason it should be called more than once. I have a button on the same page that triggers a call with fnDraw when it's clicked, and that works fine any only generates 1 server side request. Same with sorting - sorting a column generates one server side request and works fine.
My initialization is using sAjaxSource to talk to our server side script, and I am using fnServerData to send form data along with the call.
What can I do to make the initial page draw only call our server side script once?
Thanks.
Andy
I'm just getting started with data tables. So far things are going pretty smoothly, but I am experiencing some behavior that concerns me. I don't think that I'm doing anything that would be causing this, but I'm not sure, and I can't find anything about it in the forums.
I am using server side processing and on initial page load (data tables initialization) I see our server side script get called 3 times. I don't see any reason it should be called more than once. I have a button on the same page that triggers a call with fnDraw when it's clicked, and that works fine any only generates 1 server side request. Same with sorting - sorting a column generates one server side request and works fine.
My initialization is using sAjaxSource to talk to our server side script, and I am using fnServerData to send form data along with the call.
What can I do to make the initial page draw only call our server side script once?
Thanks.
Andy
This discussion has been closed.
Replies
Does this sound right? Is there just no way to avoid the extra/unnecessary server-side call if I want sorting enabled?