javascript - Form to use AJAX rather than a page refresh but also utilise error handling? -


i have webform integrate on site.

http://app.bronto.com/public/webform/render_form/gmy3v1ej883x2lffibqv869a2e3j9/37ea72cebcc05140e157208f6435c81b/addcontact/

firstly error handling. if don't enter name or valid email, validation messages appear on page, after page refresh.
secondly, on submitting valid (not empty) name , valid email address, submits , redirects (redirect url site offline).

my question is, how can serialize form not refresh page both error message display , submit? if submitted no errors message such "you have been subscribed" should appear.

i have tried if data == success displaying success message no luck. can't seem error messages displaying if it's not success, presume issue determining if there's error or success.

in short, i'm trying use ajax error messages , success message on submit, without refresh.

any ideas on one? thanks

i think jquery.form may suit you, used submit form without refresh, , famous. there many examples in official website, it's easy use.

hope helps ;)


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -