Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

360
Views
DataTables with yadcf plugin - how to override sent parameters

I'm using DataTable with yadcf plugin and I want to override send parameters to match my API on server.

For example: I have column Order, it's third column in columns array and I want to send parameter called orderSearch instead of columns[2].search.value.

How can I do this? How can I manipulate parameters?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Use ajax.data option to manipulate parameters sent to the server.

For example:

$('#example').DataTable({
  "processing": true,
  "serverSide": true,
  "ajax": {
    "url": "/script.php",
    "data": function(d){
        d.orderSearch = d.columns[2].search.value;
    }
  }
});

Also you can construct and return your own object which will not be merged with default DataTables response object. See this example for demonstration.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!