Home > Web Front-end > JS Tutorial > What are the problems Ajax is facing now? Ajax shortcomings

What are the problems Ajax is facing now? Ajax shortcomings

青灯夜游
Release: 2018-11-08 14:31:05
Original
2344 people have browsed it

This article will introduce to you some of the problems that Ajax is currently facing, so that everyone can understand what shortcomings of Ajax need to be improved. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

Ajax is the most viable rich Internet application (RIA) technology. It is gaining huge industry momentum, developing rapidly, and several toolkits and frameworks are emerging. But at the same time, Ajax also faces many problems. For example: browser incompatibility, difficulty in maintenance and debugging, etc.

Let’s list some of the problems currently encountered by Ajax:

1. Increased complexity

Server-side developers need to understand the HTML client pages and the server-side logic that will need to be presented in the logic.

Page developers must have JavaScript technical skills.

2. AJAX-based applications can be difficult to debug, test and maintain

JavaScript is hard to test - and automated testing is hard.

Modularity in JavaScript is low.

There is a lack of design patterns or best practice guidelines.

3. Toolkits/frameworks are not yet mature

Most toolkits/frameworks are still in the testing stage, which makes many web developers Writing Ajax code is intimidating.

4. Browser support

1) XMLHttpRequest

XMLHttpRequest has not yet been standardized. XMLHttpRequest is not supported in older browsers

2) JavaScript technical dependencies and incompatibilities

The application must be enabled to run, some browser incompatibilities still exist , if the user disables JS, the website cannot obtain data

5. Security issues

1), server side Aspects

AJAX-based web applications use the same server-side security scheme as regular web applications.

Authentication, authorization and data protection requirements can be specified in the web.xml file (declarative) or in the program (procedural).

AJAX-based web applications are subject to the same security threats as regular web applications.

2), client side

JavaScript code is visible to users/hackers. Hackers can use JavaScript code to infer server-side weaknesses, causing security issues.

JavaScript code is downloaded from the server and executed ("eval") on the client, potentially compromising the client via malicious code.

Downloaded JavaScript code is subject to a sandbox security model that can relax signed JavaScript.

6. The support for mobile devices and streaming media is not very good

1), some handheld devices (such as mobile phones, PDAs etc.) currently does not support ajax very well. For example, when we open a website using ajax technology on a mobile browser, it does not currently support it.

2). The support for streaming media is not as good as FLASH and Java Applet

7. Destroy the browser forward and the "back" button cannot achieve the effect

AJAX only partially refreshes, so the "Back" button on the page is useless.

Summary: The above is the entire content of this article, I hope it can It will be helpful for everyone’s learning. Related video tutorials are recommended: JavaScript Tutorial, Ajax Tutorial!

The above is the detailed content of What are the problems Ajax is facing now? Ajax shortcomings. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template