Strange parameters building behavior. Can we configure this?

Strange parameters building behavior. Can we configure this?

Temple1Temple1 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:
the right way
and this way, when accessing the same view via another url:
wrong way
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

Answers

  • kthorngrenkthorngren Posts: 20,292Questions: 26Answers: 4,768
    Answer ✓

    Take a look at your ajax option on the two pages. The one sending JSON formatted data probably has an ajax.data set similar to the forth example in the ajax.data docs where the other doesn't.

    Kevin

  • Temple1Temple1 Posts: 2Questions: 1Answers: 0

    @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!

This discussion has been closed.