Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82056

How to get an initial search using server-side processing?

$
0
0

I am trying to get an initial search to happen using server-side processing when my table is first loaded. I have set up the search option with my initial term, and it appears in the search box when the page is loaded.

However, the call to my server-side ajax routine does not include the search term.

How can I make that happen?

Here's my initialization code:

    $('##recipients').DataTable({
        processing: true,
        responsive: true,
        scrollX: true,
        serverSide: true,
        ajax: { url : /ajax/info.cfm",
                type : "POST"},
        },
        search: {
              "search": "Fred"
        }
    });

Viewing all articles
Browse latest Browse all 82056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>