current location: Home > Download > Learning resources > Web page production > Ajax-detailed explanation
Ajax-detailed explanation
Classify: Learning materials / Web page production | Release time: 2018-01-30 | visits: 2907467 |
Download: 150 |
Latest Downloads
Red Alert Online
Delta Force
Pokémon UNITE
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
24 HoursReading Leaderboard
- 1 How Can I Forcefully Terminate a Single Thread in C 11 Without Cooperation?
- 2 How Can I Find the Path of a Go Executable?
- 3 Infinity Nikki: How To Get The Electrician Outfit
- 4 How to Eliminate White Space When Merging PDFs?
- 5 How to Handle XML Namespaces and Access Elements/Attributes with Colons in SimpleXML?
- 6 How Can I Inspect the Header of a Go Slice?
- 7 How Do I Integrate External Libraries into My Visual Studio 2012 C Project?
- 8 How Can I Reliably Detect Changes in Window Location Hash in My Ajax Application?
- 9 How to Efficiently Find the Top N Items per Group in a Spark DataFrame?
- 10 Monopoly Go: North Pole Profits Rewards Guide (December 17-19)
- 11 Big Discovery - lowCalAlt_update 7
- 12 How Can I Animate an Image Continuously in Java While Simultaneously Handling Keypress Events?
- 13 How to Solve the Microsoft Visual C 14.0 Dependency Error When Installing MySQL-Python with Pip?
- 14 Can C# Extension Methods Overload Operators?
- 15 Java Integer Comparison: When Does `==` Work, and When Should You Use `equals()`?
Latest Tutorials
-
- Go language practical GraphQL
- 2352 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3772 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 2007 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2788 2024-03-29
1. Synchronous request: In the registration case we wrote before, after writing the user name, password, and other information in sequence, manually press the submit button, and then the data on the browser will be transmitted to the server to verify whether the user name is repeated, and then The browser prompts you with information about whether the user name is repeated. This method is slower and requires you to refresh the entire page after writing all the information and submit it to the server. If it does not pass the verification, you have to refill the information before submitting it, which is a waste of traffic. Secondly, if the verification is not passed, all the information will be lost and you have to fill it in again, which is too troublesome.
2. Asynchronous request: If using ajax, bind the user name text box to a mouse defocus event. In the event, use ajax to submit the user name to the server for verification. This verification is automatically sent to the server by the browser when our mouse leaves the user name text box. If you request verification, when we fill in other information, the server will send the verification information to the browser to prompt whether the information is repeated. This saves traffic and allows you to modify only the user name. All information can be submitted only after the final verification is passed. ;