jquery - Refresh datatable while adding new parameter -
I have a search screen where the user realizes what data has been retrieved for the report. The parameters are taken to the datatable and then the report is retrieved through AJAX.
The URL used for AJAX loads may be something like What I want to do is provide a link that will allow the user to download the results of the report. To do so, I want to submit the same request on the server, but then I will only send the view to CSV instead of HTML. To do this, I want to add an extra variable to the URL, so it's called 1) Set the value with fnServerParams. 2) Retrieve the url set as ajax source url report.php? Batch = 1 & amp; Id = 5 .
report.php? Batch = 1 & amp; id = 5 & amp; Output = download comes out with something like <. P> I have tried to give some approval to add that variables, which are both without success FYI, I have assigned the dateable configuration to a variables named FixHeader.
fixTheHeader.push ({"Output": "Downloads"}); and then
fixTheHeader.fnReloadAjax (); Reload the table with . Although no error was generated, but it did not even add variables in the URL.
Comments
Post a Comment