How to reload page after search
How to reload page after search
Hi all,
I have a problem.
When my page loads everything is working correctly, script is called and data is passed to javascript for filling the table. I have a datetime picker and I am making a query that should give me some results. I am calling the same script, but this time I don't see anything except that request gives me data in json format that should be shown. How to make it shown again in the database? I don't see my page or anything. Only JSON text.
Any idea?
I have a problem.
When my page loads everything is working correctly, script is called and data is passed to javascript for filling the table. I have a datetime picker and I am making a query that should give me some results. I am calling the same script, but this time I don't see anything except that request gives me data in json format that should be shown. How to make it shown again in the database? I don't see my page or anything. Only JSON text.
Any idea?
This discussion has been closed.
Replies
You are "making a query". How? Against what data?
If you have a server-side process that returns JSON data, and you want your Datatable to contain that JSON data, then look at using an AJAX datasource and the fnReloadAjax() function, which you can call whenever you need the table to update.