Redirect after POST request with jquery

后端 未结 3 977
日久生厌
日久生厌 2021-02-01 11:27

I\'m working with Django. I have an HTML page, where I do some Javascript stuff, and then I do a jQuery post, in this way:

$.ajax({ 
  url: \'/xenopatients/meas         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 11:39

    @Daniel is correct in that you want to avoid redirects with ajax calls, but you might take a look at this Stack Overflow question which addresses how to do so: How to manage a redirect request after a jQuery Ajax call

提交回复
热议问题