current location: Home > Download > Learning resources > Web page production > Ajax implementation principle
Ajax implementation principle
Classify: Learning materials / Web page production | Release time: 2018-01-09 | visits: 2996168 |
Download: 162 |
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 to Extract Specific Values from Nested JSON Data using Google Gson in Java?
- 2 How Can I Efficiently Parse HTML in Java?
- 3 Should You Inherit from Standard Containers?
- 4 What's the Optimal Deep Cloning Approach in Java?
- 5 How Can Python's `itertools` Module Be Used to Efficiently Generate a Powerset?
- 6 How Do I Convert a Go Array to a Slice?
- 7 How Can I Trigger Compile-Time Errors in Go for Variadic Functions Called with No Arguments?
- 8 Understanding Local Storage and Session Storage in JavaScript
- 9 How Does Transparency Affect the Final Color in Overlapping Semi-Transparent Boxes?
- 10 How to Fix "PDOException SQLSTATE[HY000] [2002]: No Such File or Directory" When Connecting to a Remote MySQL Server?
- 11 Can MySQL Triggers Execute External PHP Scripts?
- 12 How Do Python's "and" and "or" Operators Handle Non-Boolean Values?
- 13 How Do I Properly Use Template Variables within Jinja2 Expressions in Flask Routes?
- 14 How Can I Force File Downloads Using PHP?
- 15 Nosecone: a library for setting security headers in Next.js, SvelteKit, Node.js, Bun, and Deno
Latest Tutorials
-
- Go language practical GraphQL
- 2294 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3722 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1980 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2768 2024-03-29
background:
1. In traditional Web websites, submitting a form requires reloading the entire page.
2. If the server fails to return Response for a long time, the client will become unresponsive and the user experience will be very poor.
3. After the server returns the Response, the browser needs to load the entire page, which is also a heavy burden on the browser.
4. After the browser submits the form, a large amount of data is sent, causing network performance problems.
question:
1. How to improve?
2.What is AJAX?
3. What are the advantages?
4. What are the disadvantages?
1. What is AJAX
1. Why AJAX is needed
When you need to obtain data from the server and refresh the page, if you do not use AJAX, you need to submit the entire form. When submitting the form, send a request to the server, and the page needs to wait for the server to send the response before the page can resume operations. .
2.The concept of AJAX:
1.AJAX = Asynchronous JavaScript and XML.
2.AJAX is a technology used to create fast dynamic web pages.
3. By exchanging a small amount of data with the server in the background, the web page can be updated asynchronously.
4. You can update certain parts of the web page without reloading the entire web page.
3.What is asynchronous
The current page sends a request to the server, and the current page does not need to wait for the server response to operate the web page. After sending the request, the current page can continue to be browsed and operated.
4.What is partial refresh
We can achieve partial refresh in two ways