1

Let's consider this scenario, I have a form, I need to post this to the backend and use data from this form to perform multiple webservice API calls. These API calls could be payment processing calls or some other data-fetching calls. I have noticed on quote a few websites that they perform these kinds of calls using AJAX and redirect user to different page after the call is completed. Is there any particular reason for this? I personally prefer doing a normal HTTP post to submit form's data, make API calls and then issue redirect from backend.

  • Maybe these websites implemented the navigation at the client side. What means that server is agnostic to the current page (state) at the client side. It's common on SOA architectures where services are decoupled from the view. Reasons to follow SOA approach are political and strategic. – Laiv Sep 12 '16 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.