Sending request with the current ajax aparams without reload

Sending request with the current ajax aparams without reload

_mercury_mercury Posts: 12Questions: 3Answers: 0
edited October 2023 in Free community support

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

  • kthorngrenkthorngren Posts: 21,324Questions: 26Answers: 4,949
    edited October 2023

    You can use a jQuery ajax() to send the params to the server. You wouldn't be able to use ajax without using draw() or reload().

    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

  • _mercury_mercury Posts: 12Questions: 3Answers: 0

    thanx i will review that

Sign In or Register to comment.