3 ms·
Sure, it requires some careful planning. You'd set up the html form with method="post". Then have the AJAX send the request with its content type as "applicatio
by prophesi 8y ago
Sure, it requires some careful planning. You'd set up the html form with method="post". Then have the AJAX send the request with its content type as "application/x-www-form-urlencoded". At least with Node Express, that will have the requests handled the same.
- overcast 8y agoI understand how this works, I've built a billion products by this point. It's much easier and user friendly to post the form through AJAX, get a JSON response on success or an array of error codes for each field. Dealing with error messages and passing around form information is not something I want to deal with any longer in OG form submit.
- prophesi 8y agoAlright. To each their own.