RegExp search and URL parameters

RegExp search and URL parameters

sloopsloop Posts: 1Questions: 1Answers: 0

Hi
Excellent software.

I'd like to extend
https://datatables.net/examples/api/regex.html

So that I can pass a parameter as part of the URL to pre-filter the page when it loads

Eg
Http://example.com/data?column2=fred

And then column 2 would would be filtered to only show items containing "fred" .

I can easily enough get the search term in to the text box using value="fred", however that doesn't trigger the keys event.

I've tried calling filercolumn(2), but that throws an error as apparently th table has already been drawn. http://www.datatables.net/manual/tech-notes/3 which I'm not sure how to work around.

Than you in advance for any pointers.

This discussion has been closed.