Populate Datatable from a SQL query result.

Populate Datatable from a SQL query result.

JaguarHTFJaguarHTF Posts: 1Questions: 1Answers: 0

Hello,

I'm trying to populate a Datatable with a javascript array which is filled with the result of an SQL query.
The SQL query generates some data and this is saved into a two dimensional array and this array is used to populate the data table.
But I'm unable to do so.

The SQL query, the call to the datatable function and the table are all setup inside the Javascript funciton which is called while clicking a button on the HTML. I've added this all in a div and used innerhtml to append it.

            var mydiv = document.createElement("div");
    document.body.appendChild(mydiv);
    mydiv.innerHTML = strHtml;

Please help.

Regards,
Jaguar

This discussion has been closed.