I’m using jquery post for pagination.
django receives the post request and issues a response.
the problem is I don’t see the response being displayed in the browser.
this is the js I’m using:
$.ajax({
type:"POST",
url:"/company/sort/",
data: {
'type': type,
'page': page
},
});
How can make the response from django to be displayed?
You must add ”onsucess” function to the structure, function that will handle response from Django.
You must add to the dictionary argument of
$.ajaxcall:Update
If you get as an answer from the script not URL but new content of the page, you can load it to the current page using
or