Another RedirectResponse() issue...

Discussion to talk about software related topics only.
User avatar
terry_opie
Posts: 27
Joined: Tue Jul 30, 2013 8:33 am

Re: Another RedirectResponse() issue...

Post by terry_opie »

Forrest wrote:Another solution is to use ajax to send the form post

I used jquery to select the form (you would need to add id="canmsgform" to the <form> statement to allow the selector to work), then overrode the submit functionality of the form. By returning false, the html submit is never performed. The end result is the form in submitted without having to refresh or reload the page. Because of this, you are never sent to the url sendcanmsg.
I had tried that, but was missing the returning of 'false', and thus it was always submitting... I'm learning js and jQuery as I go on this project.

Thank you!!
Post Reply