Skip to content

Instantly share code, notes, and snippets.

@rlynjb
Last active September 13, 2016 18:03
Show Gist options
  • Save rlynjb/ffd0e98a5659c3c1de95870d163b00aa to your computer and use it in GitHub Desktop.
Save rlynjb/ffd0e98a5659c3c1de95870d163b00aa to your computer and use it in GitHub Desktop.
how to intercept a Grav frontend form using AJAX to avoid page refresh when form submitted
/*
ref: http://stackoverflow.com/questions/12188847/intercept-form-post-string-and-send-via-ajax-instead
*/
how ajax and php forms work:
- http://code.tutsplus.com/tutorials/submit-a-form-without-page-refresh-using-jquery--net-59
follow tutorial on getgrav frontend forms:
- https://learn.getgrav.org/forms/forms
use ajax to intercept form submissiom:
- http://stackoverflow.com/questions/12188847/intercept-form-post-string-and-send-via-ajax-instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment