How to reload page after search

How to reload page after search

DenonthDenonth Posts: 76Questions: 0Answers: 0
edited June 2012 in General
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?

Replies

  • Taylor514ceTaylor514ce Posts: 74Questions: 8Answers: 0
    You haven't provided enough information for us to provide a meaningful answer. You say a "script is called" when your page loads. Is this a client-side Javascript? Server-side PHP that generates your page? Can we see the source code for this script?

    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.
This discussion has been closed.