javascript - redirection follow by post -


Just wondering how the air ticket booking website redirects the user to the airline booking website and then fill out (I think Posting) required information so that the user will be selected as the original page / destination / date?

Is the use of technology to open a new browser window and post an Ajax from there?

Thank you.

It can work like this: on the air ticket booking system you have HTML form < / Strong> If the user submits data, by pointing to some airline booking website (by the action parameter), then the airline booking website has data land and this website issues a request.

Generally people want to go back to the first site. This request can be done by sending back url with data. Of course, to handle such URLs, there should be an API on the airline booking site.

When you pay online, all kinds of reservations, etc.

Not sure how to use AJAX calls, the simple HTML form here is quite considerable. Note that attempts to reach the restricted url can be made by creating AJAX calls between different domains.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -