Search
-
JQuery + Ajax in Flask not working
by kthorngren ·@app.route('/get_table_data', methods=['POST']) def get_table_data(): cnx = mariadb.connect(user='root', password='', database='test') cursor = cnx.cursor() cursor.execute("SELECT I -
JQuery + Ajax in Flask not working
by kthorngren ·@app.route('/get_table_data', methods=['POST']) def get_table_data(): result = process_request() #process request and save in result return jsonify(result) #return JSON string -
Deeply nested arrays in a json
by kthorngren ·@allan, I noticed this comment in the Server Side docs for the data return parameter: -
Server-side processing doesn't seem to work
by kthorngren ·https://datatables.net/manual/server-side#Returned-data -
ServerSide: true, and I'm not having a successful outcome result for a table
by kthorngren ·I think the problem is that you are not returning the data correctly. According to the server side doc you need to return the following parameters: draw, recordsTotal, recordsFiltered and data. -
Matrix display - Unknown parameter '0' for row 0, column 0 error -- TN #4
by allan ·I presume that the error is happening for the #returnsDueByStateTable table? The reason for that is that the data being returned from the server for each row is in the format: -
Data render search unknown field error
by kthorngren ·I noticed you have "files":[] in the JSON response. Not sure if that is the source of the unknown field error. 'files` is not one of the required or optional fields that server side is ex… -
scrollTo() specific row in the next pagination
by kthorngren ·https://datatables.net/manual/server-side#Returned-data -
Using the PHP data() method to access data before it is output
by stol ·According to the documentation here https://editor.datatables.net/manual/php/getting-started#Return-data, you can access the data before json_encoding it. There is no further mention of how to access -
How to return server error messages to datatables.
by marlonBr1 ·I've just seen this post, that solves my problem: https://datatables.net/manual/server-side#Returned-data -
Custom values feed and server-side data post-process
by allan ·Yes, use DT_RowClass. See the documentation here. -
Is there a way to modify the pagination info ?
by Junw ·Based on this server-side#Returned-data, there don't seem to be a way i can modified the pages listing. -
how can I add a dragable mark at <tr> when I use ajax data source?
by allan ·Do you mean you want to add a draggable attribute to the tr elements? If so, createdRow or rowCallback is the correct way to do it. -
Calculable fields or sql functions
by mom ·http://editor.datatables.net/manual/php/getting-started#Return-data -
Datatable using Server Side Progress, Pagination dont work (Datatables ver 1.10)
by allan ·Per the forum rules, please link to a test case showing the issue. -
add sclass based on data
by allan ·You can use the DT_RowClass property to have DataTables automatically add a class to a row (documentation - that page is about server-side processing, but the DT_RowId, etc, parameters will work for … -
Passing JavaScript variable between pages works fine, but DataTables is still erroring
by lordterrin ·<div id="return"></div> ~~~~~ $(document).ready(function (e) { $("#uploadForm").on('submit',(function(e) { e.preventDefault(); $.ajax({ -
[RESOLVED] Datatables server-side problem to pagination (number of page not correct)
by allan ·Yes - recordsFiltered is not the page length. It would be worth reading over the documentation for those parameters: -
DT_RowData not working as manual suggest (sadly)
by allan ·Excellent suggestion - and the manual was certainly wrong! Thanks for pointing this out! -
datatable server side pagination doesn't work
by allan ·"recordsTotal": 17, "recordsFiltered": 10,