Submitting a jotform over AJAX so page does not get reloaded

  • wendywilson
    Asked on February 19, 2015 at 10:17 PM

    We're trying to submit a jotform with ajax so there is no page refresh or re-direction.

    I'm a bit confused about what's possible and what not. one sample that keeps popping up is  http://idarktech.myartsonline.com/jotform/popup/test_jotform_popup.html but that page is actually dead now and it doesn't seem to address the issue: can we simply use AJAX to submit a form - stay on the page - then receive some server response message? 

  • Ben
    Replied on February 20, 2015 at 8:36 AM

    I took a look at the page and I can see that it is being submitted properly, with a small popup window offering the link to close it.

    Now this is a great way to use AJAX, but it would require you to make the changes to your jotform code - and re-do them each time you make some change to your jotform within JotForm Builder.

    To avoid this, I would recommend using our iframe embedding code instead. It will open the jotform withing the iframe and only iframe would get reloaded, while your page would stay as it is.