export data to php
export data to php
alzambo
Posts: 38Questions: 17Answers: 1
Hi,
I need to export table filtered data to http://www.tinybutstrong.com php script.
How can I access datatables filtered data?
Thank you,
Alex
This question has accepted answers - jump to:
This discussion has been closed.
Answers
What have you tried? The
rows().data()
method is what I would suggest with aselector-modifier
forrows()
to get only the filtered rows.Allan
Good, thank you so much.
I managed to access filtered data with rows.data() but which would be the cleanest way to pass that object to ajax call?
This one:
will produce an error:
TypeError: 'insertCell' called on an object that does not implement interface HTMLTableRowElement.
Alex
Try:
Otherwise you are passing jQuery a DataTables API instance, which it might not like.
Allan