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: 2907651 |
Download: 150 |
Latest Downloads
?Horror Beat Phase Maker
?Himalayan Children
?Zebra AI
?Supermarket Manager Simulator
Red Alert Online
Delta Force
Pokémon UNITE
?Fantasy Aquarium
?Girls Frontline
?Wings of Stars
24 HoursReading Leaderboard
- 1 Custom upload component button text: a flexible parameter delivery scheme
- 2 JavaScript implements clicking on links to display multiple elements
- 3 Create a love background pattern with CSS
- 4 Guide to properly initializing CodeMirror multiple instances
- 5 Flexible control of upload component button text: a universal solution
- 6 Three Note Apps Are Better Than One
- 7 CSS In-depth: Use sub-selectors to accurately overwrite styles of nested elements without class names
- 8 How to correctly initialize and display multiple CodeMirror editor instances
- 9 Modify Google Chart charts: date format, inversion chart and numerical scaling
- 10 Highcharts and Dojo Front-end Integration Guide: Solving Compatibility Challenges and Practices
- 11 Tablets Are Keeping the Stylus Dream Alive
- 12 Multi-line arrangement with Flexbox: Flexible control of line wraps for Span elements
- 13 Use linear-gradient to accurately control the size and positioning of solid color backgrounds
- 14 Implement dynamic element multi-column layout using CSS Grid
- 15 CSS selector tips: Accurately cover the background color of nested elements without class names
Latest Tutorials
-
- Go language practical GraphQL
- 4049 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 5355 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 3433 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 3934 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. ;
?

Related recommendations


Popular Recommendations

