Use ajax to write logs

Source: Internet
Author: User
This article introduces how to use ajax to write and log on. This article introduces how to use ajax to write and log on.

The full name of AJAX is Asynchronous JavaScript and XML (Asynchronous JavaScript and XML ).

Advantages of ajax:

1. the biggest difference is that the page is refreshing and the user experience is very good.
2. use asynchronous mode to communicate with the server, providing more rapid response capabilities ..
3. some of the previous server workload can be transferred to the client, and the client's idle capabilities can be used to handle the workload, reduce the load on servers and bandwidth, and save space and bandwidth rental costs. In addition, it reduces the burden on the server. the ajax principle is to "retrieve data on demand", which can minimize the burden on the server caused by redundant requests and responses.
4. based on standardized and widely supported technologies, you do not need to download plug-ins or applets.
5. ajax can make internet applications smaller, faster, and more friendly.

Here I use ajax to write a simple login page: The first thing I need is the database login table,

The following is the logon page code. first, introduce the jquery package.

    
     Untitled Document    

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.