Newbie question about server integration without Ajax
Newbie question about server integration without Ajax
Hi everyone,
I'm looking into integrating DataTables into Mendix because it provides way more flexibility than we have now.
I need to integrate with a server, but the default Ajax integration is not an option for me. I need DataTables to get back to me for loading an additional page, or when the user scrolls down far enough. I would then need to call a function on DataTables to show the new page when I get response from the server. Similar when the user clicks a column to reorder the data because the data needs to be retrieved again from the server, for pagination in the order requested.
I have seen the Ajax examples and I know there is the preXhr
. I need something similar, without the Ajax call at all.
Thanks in advance for your assistance.
Marcel
This question has an accepted answers - jump to answer
Answers
Hi Marcel,
Sounds like you want the
ajax
option as a function. It will be called whenever DataTables needs to request data from the server, and you can do whatever you want with that request.Allan
Hi Allan,
Great! I looked at the examples and events but missed that one.
Thanks a lot,
Marcel