Javascript-how to submit a form without refreshing a new page

Source: Internet
Author: User
Describe the situation first. I have to submit a job seven days later. I only need to use PHP and js. I am working on a login interface, that is, after information is submitted, I don't want to refresh the page, I want to transition to new content through animation. Question: I need to submit a ticket using a notebook. I need to use .html to submit a ticket. I need to explain the situation first. I have to submit a job seven days later. I only need to use PHP and js. This is also the requirement.
I am creating a login interface, that is, after the information is submitted, I do not want to refresh the page, I want Animation transitionTo the new content.
Q: What are the requirements of the website? Should I use the website to submit the table list? Should I use .html for submission or ajax?
Maybe I cannot express myself,
I actually want to ask the whole question. Process(From submitting a form to prompting that the logon is successful, Note: Do not refresh the page) how is this done?

On the backend, I only use php !!!
Now, I do not consider learning asp.net.

Reply content:

Describe the situation first. I have to submit a job seven days later. I only need to use PHP and js.
I am creating a login interface, that is, after the information is submitted, I do not want to refresh the page, I wantAnimation transitionTo the new content.
Q: What are the requirements of the website? Should I use the website to submit the table list? Should I use .html for submission or ajax?
Maybe I cannot express myself,
I actually want to ask the whole question.Process(From submitting a form to prompting that the logon is successful, Note: Do not refresh the page) how is this done?

On the backend, I only use php !!!
Now, I do not consider learning asp.net.

Process:

  1. Submit data using ajax

  2. The backend processes the request and returns the result based on the situation. The result may fail or fail.

  3. The ajax callback processes the back-end responses and modifies the page content as needed.

The landlord has always stressed that only php is used, but this process does not matter with the backend language.

Hello:
If you do not need to submit a new form, you can use ajax to reserve the corresponding ajax processing interface in the background.
The front-end uses jQuery's serialize ()
After the form is serialized, the request is sent to the backend for further processing ~

Ajax implementation is convenient and seamless, without page refresh

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.