We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Best Practice - AJAX or form?

Erin Dalzell March 27, 2015 by Erin Dalzell

I am building a quick little site to sell a single product and will be doing the payment processing with Stripe.

Two options:

  1. AJAX call from button handler to call the back-end ($.post(<call here>))
  2. Use a form and set the action ($('form').submit())

Any opinions on the 'best' way to the do that? My end goal would be to make an Add-on to make this easy for everyone else.

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
1 Reply
1 Follower