≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
sAjaxSource
sAjaxSource
yaşar
Posts: 3
Questions: 0
Answers: 0
April 2014
edited April 2014
in
General
How can I find information returned by
sAjaxSource
??
Replies
allan
Posts: 65,821
Questions: 1
Answers: 10,951
Site admin
April 2014
1. Use the `xhr` event
2. Use fnInitComplete
3. In DataTables 1.10 you can use the `ajax.json()` method.
Allan
yaşar
Posts: 3
Questions: 0
Answers: 0
April 2014
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);
allan
Posts: 65,821
Questions: 1
Answers: 10,951
Site admin
April 2014
It gives you the JSON object as the second parameter - as noted in the documentation: http://datatables.net/ref#fnInitComplete
Allan
yaşar
Posts: 3
Questions: 0
Answers: 0
April 2014
I can read and write data as
aaData
wonder which areas?
allan
Posts: 65,821
Questions: 1
Answers: 10,951
Site admin
April 2014
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.
Replies
2. Use fnInitComplete
3. In DataTables 1.10 you can use the `ajax.json()` method.
Allan
But i want to find sql
sample
array("sEcho"=> $_GET["sEcho"],
"iTotalRecords"=> $_GET["iDisplayLength"],
"iTotalDisplayRecords"=> $total ,
"aaData"=> $ogrenciler,
"sql"=> $sql);
Allan
Allan