Datatables not initializing on xmlhttpPost
Datatables not initializing on xmlhttpPost
I've built a query where there are several forms which pull data using xmlhttppost and then rendering the data in a 'results' page. I suspect the problem is that the table doesn't exist until the query is run.
I tinkered with a few examples under server side processing, but to no avail.
Basically, my php/sql query runs like this.
1) You select a query form.
2) Enter ID's and hit submit.
3) A onSubmit="xmlhttpPost(string variables assembled here by an ajaxsubmit.js script) pushes the ID's into a .php file, grabs the data
4) Data populates on a results.php page.
I think Datatables cannot initialize because either the table doesn't exist as of yet. I've confirmed the ajaxsubmit isn't the culprit, so It's a matter of Datatables knowing where to initialize.
Unfortunately, I cannot provide a link since this is a proprietary tool .