Ajax Failing, I'm Not Using Httpresponseredirect But It Takes Me To Different Url And Show Some Javascript Console Message
I'm not sure why it's returning it like this;http://imgur.com/aoPOUhH I don't have HttpResponseRedirect for this but it takes me to different url. What I'm trying to do is to let u
Solution 1:
After I reviewed the complete code and discussed with OP on chat. Turns out there was another event listener (not mentioned in the question) further down in the code which basically submits the form.
Hence, the issue still didn't resolve once the action
attribute was removed from the form. Cause then the form would simply submit a POST request with action=""
. And hence the page would simply reload.
Post a Comment for "Ajax Failing, I'm Not Using Httpresponseredirect But It Takes Me To Different Url And Show Some Javascript Console Message"