Strange parameters building behavior. Can we configure this?
Strange parameters building behavior. Can we configure this?
Temple1
Posts: 2Questions: 1Answers: 0
Is there a way to enforce datatables to send the request parameters in one of the ways it is used to?
On the same page(same source file) i get the library sending me the request with parameters looking this way:
and this way, when accessing the same view via another url:
I've got no idea why this can happen, and the only thing that differs is the page url, i believe.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Take a look at your
ajax
option on the two pages. The one sending JSON formatted data probably has anajax.data
set similar to the forth example in theajax.data
docs where the other doesn't.Kevin
@kthorngren, thank You for the kind help, the trouble was pretty near to the place You've sent me to.
I've misused my link generator and got an empty string from it, so datatable received nothing as sAjaxSource and it just used the current page url. The weirdness is how it forms the parameters in such a situation. Anyway, now the error is gone and the requests are fine. Thanks!