sAjaxSource

sAjaxSource

yaşaryaşar Posts: 3Questions: 0Answers: 0
edited April 2014 in General
How can I find information returned by sAjaxSource ??

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    1. Use the `xhr` event
    2. Use fnInitComplete
    3. In DataTables 1.10 you can use the `ajax.json()` method.

    Allan
  • yaşaryaşar Posts: 3Questions: 0Answers: 0
    fnInitComplete gives us only aadata
    But i want to find sql



    sample

    array("sEcho"=> $_GET["sEcho"],
    "iTotalRecords"=> $_GET["iDisplayLength"],
    "iTotalDisplayRecords"=> $total ,
    "aaData"=> $ogrenciler,
    "sql"=> $sql);
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    It gives you the JSON object as the second parameter - as noted in the documentation: http://datatables.net/ref#fnInitComplete

    Allan
  • yaşaryaşar Posts: 3Questions: 0Answers: 0
    I can read and write data as aaData wonder which areas?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I don't really understand the question I'm afraid. The second parameter in fnInitComplete gives you the JSON object returned form the server. Is that not what you want?

    Allan
This discussion has been closed.