≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
XML as source for datatable
XML as source for datatable
reneg
Posts: 2
Questions: 0
Answers: 0
November 2012
edited November 2012
in
General
Hi, how to use a XML file for the datatables script? I see in some examples .txt-files that are used, but I want my XML to load in the datatable plugin with ajax.
Replies
reneg
Posts: 2
Questions: 0
Answers: 0
December 2012
Someone?
allan
Posts: 65,846
Questions: 1
Answers: 10,956
Site admin
December 2012
There are a number of discussions on this topic already in the forum:
http://datatables.net/forums/discussion/2689
http://www.datatables.net/forums/discussion/3326
Among many others. The search bar at the top might be useful.
You need to transform the XML to JSON. DataTables only accepts Javascript objects or HTML as data sources.
If you are Ajax loading your data use
fnServerData
to override the Ajax call and transform the data.
Allan
This discussion has been closed.
Replies
http://datatables.net/forums/discussion/2689
http://www.datatables.net/forums/discussion/3326
Among many others. The search bar at the top might be useful.
You need to transform the XML to JSON. DataTables only accepts Javascript objects or HTML as data sources.
If you are Ajax loading your data use fnServerData to override the Ajax call and transform the data.
Allan