Query string parameters when using ajax( data, callback, settings )
Query string parameters when using ajax( data, callback, settings )
ovejohansson
Posts: 1Questions: 1Answers: 0
Hi!
When using syntax like:
options = {
dom: "Bfrtip",
serverSide: true,
ajax: {
url: "http://localhost:55555/projects/datatable",
type: "GET"
},
...
I can retrieve the data (search[value], order[0][column] etc.) from the query string.
How do I "add" the same query string parameters to the url when using syntax like below?
Is there a simple way to format the content in the data object to query string parameters?
options = {
dom: "Bfrtip",
serverSide: true,
ajax : (data, callback, settings) => {
this.http.get(this.REST_ROOT + '/projects/datatable')
.map(this.extractData)
.catch(this.handleError)
.subscribe((data) => {
callback({
aaData: data
})
})
},
...
Thankful for any help in the right direction
/Ove
This discussion has been closed.