pass parameter to ajax call

pass parameter to ajax call

BJW86BJW86 Posts: 30Questions: 11Answers: 0

Im trying to pass a search parameter to an ajax call but I'm struggling to get it to work..

I have a test case here: http://live.datatables.net/razilone/1/edit

I have form field at the top left for the user to input a search parameter but I'm struggling to pass it to the ajax call, I essentially want to make a get request to "http://127.0.0.1:8000/{search_criteria}

Would be really grateful if someone could point me in the right direction.

Thanks,
Bruce

Answers

  • BJW86BJW86 Posts: 30Questions: 11Answers: 0

    I have managed to get this working with table.ajax.reload() rather than table.draw()

  • kthorngrenkthorngren Posts: 20,277Questions: 26Answers: 4,766

    Good find. table.draw() will only send an ajax request if you are using server side processing.

    Kevin

Sign In or Register to comment.