Oudated Ignited Datatables
Oudated Ignited Datatables
AfiqAbdullah
Posts: 5Questions: 0Answers: 0
Hi I try to use Ignited Datatables from https://github.com/IgnitedDatatables/Ignited-Datatables
And I'm using DataTables 1.10.7.
It seems datatables parameter name sent to server changes a lot.
Is there any libraries/fix for me to work with codeigniter framework?
This discussion has been closed.
Replies
You would need to ask Ignited's author about an update.
Alternatively you could try to fix it yourself using DT's upgrade conversion guide: https://www.datatables.net/upgrade/1.10-convert
There is an option to use the legacy parameters.
Allan
Alright, thanks for the info. I will try what you all suggest.
Here my code, unfortunately the parameter names still send a new one.
Please guide me if I made mistake somewhere.
I manage to make the datatables sent old parameter names by:
$.fn.dataTable.ext.legacy.ajax = false;
but the output are.
{"draw":"1","columns":"[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]","order":"[object Object]","start":"0","length":"10","search":"[object Object]"}
Why it show [Object]?
I would suggest not using fnSeverData here. If you want to use POST with the legacy options use the sServerMethod option. Also the parameters you have are the new ones. You need to use
$.fn.dataTable.ext.legacy.ajax = true;
If that does not work, please link to a test case showing the issue.
Finally I find the solution, this code works like charms. with
$.fn.dataTable.ext.legacy.ajax = false;
Thank you for your support.
If there have any better solution . please let me know.
How can i submit an issue? Guide me please
Issues can be submitted here in the forum, with a link to a test case showing the issue.
Allan