5π
β
It looks like you want to make an AJAX request in the javascript for the next page. In your views.py
, you would want to do something like
return HttpResponse(json.dumps(data), mimetype="application/json")
instead of returning an HTML page as you do now. (If you also need that controller to serve the original page, maybe you can have an optional query parameter that tells the server to give a JSON response instead of the usual HTML.)
π€arghbleargh
Source:stackexchange.com