XML insted of JSON

XML insted of JSON

rganesh.inforganesh.info Posts: 1Questions: 0Answers: 0
edited November 2010 in General
Hello all,
I want to use XML data's insted of JSON can anyone help me out...
Thanks in advance

Replies

  • tithostithos Posts: 2Questions: 0Answers: 0
    Yes I need this too

    [code]
    $(document).ready(function(){
    $.ajax({
    type: "GET",
    url: "whitelist.xml",
    dataType: "xml",
    success: function(xml) {
    [/code]
  • nm_alexnm_alex Posts: 26Questions: 0Answers: 0
    Please give a minimal example of the data you need to display. Use code-tag, so I can read it.
  • ahusainahusain Posts: 1Questions: 0Answers: 0
    edited April 2012
    i have the same request; sample xml

    [code]
    <?xml version="1.0" encoding="utf-8" ?>
    6781 2012-03-12T14:50:42-05:00 6783 2012-03-12T14:50:42-05:00 6782 2012-03-12T14:50:42-05:00
    [/code]
  • allanallan Posts: 63,400Questions: 1Answers: 10,452 Site admin
    Currently - no - DataTables itself will only take JSON data from the server - however, using fnServerData you can easily make your Ajax request and then process your XML into a Javascript object that will then get passed to DataTables for drawing - that is how I would suggest implementing an XML server-side with DataTables.

    Allan
This discussion has been closed.