Sending request with the current ajax aparams without reload
Sending request with the current ajax aparams without reload
_mercury
Posts: 12Questions: 3Answers: 0
I have export all custom button
that should send an Ajax request with the same ajax.params()
after changing the length of the page dt.page.len(-1)
I can get the params as I said to match the front with the server.
and I can change the length But how do I send a request WITHOUT load/reload the table ?
because the req will respond with an Excel file from the server, and reloading will load all the data to the front end because I changed the length which I do not need
Replies
You can use a jQuery ajax() to send the params to the server. You wouldn't be able to use
ajax
without usingdraw()
orreload()
.You might be interested in the download button plugin that Allan linked to in this thread. Looks like it will package up the last
draw()
parameters to send to the server side processing script for the server script to build the export file. Seems like this is what you are doing and you won't need to change the page length.Kevin
thanx i will review that