Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Get original ajax json object for second dataTable

$
0
0

Hello,
I am getting data via data via ajax from backend //serverside rendering...

Also i output data from DT via drawCallback: function() {window.form_data = this.api().rows().data().toArray();}
But i want also use some my custom fields fileds as in attachments(image).... but callback function will create only array from data: part of json...

Also if i want go around and on load ajax in success

 success: function(data) {
          window.dtData = data;
          console.log(dtData);
          },

This works... that i am getting ajax json object in console ... but dataTables stop working and show no results at all :(

Is some way ??? how will possible ajax object assign to global variable + first DT will work ?.. that i will use this json object in my second DT based on javascript + i will possible use the parts of orig ajax json like custom info from this gloval variable

without that i will must create new ajax call by jquery and


Viewing all articles
Browse latest Browse all 2364

Trending Articles