1 Introduction to the popular Ajax framework technology. If the existing Ajax is classified from a framework perspective, it can be classified as follows:
Ø Level 0, completes the base work, including methods to extend original objects, and the Ajax communication part, which is relatively streamlined.
Ø Level 1, completes the effect work, including adding common effect conversion functions, such as special effects such as tween, drag, maskLayer, fade, etc.
Ø Level 2, completes component work, including components such as dialog boxes, lists, trees, calendars, etc.
Ø Level 3, completes the application work, including a complete front-end platform, allowing users to define modules that can achieve certain functions.
Some frameworks only do level zero, such as Prototype.js, some frameworks do level one, such as jQuery, and some frameworks do level three, such as Asp.net Ajax and EXT.
Choosing the appropriate Ajax framework can improve program efficiency, reduce development workload, and optimize display effects.
1.1 Asp.net Ajax introduction homepage: http://www.asp.net/cn/
Design thinking
ASP.NET Ajax integrates a set of client-side script libraries to integrate with the feature-rich, server-based development platform ASP.NET. Its server-side programming model is simpler than the client-side programming model, and it is easy to integrate with existing ASP.NET programs. Usually, to implement complex functions, you only need to drag a few controls on the page without having to understand the deep working principles. In addition, the ASP.NET AJAX Control Toolkit for server-side programming contains a large number of independent AJAX controls and AJAX function extensions to ASP.NET's original server controls.
1.2 Jquery introduction homepage: http://jquery.com/
The design idea is simple: almost all operations start with selecting DOM elements (with powerful Selector), and then operate on them (Chaining and other features). It is very easy to get started, the code is very simple, very close to the original JavaScript, and the file is very small.
1.3 Extjs introduction homepage: http://extjs.com/
Design thinking
100% object-oriented and component-based thinking, consistent syntax, and global namespace. The documentation is complete, standardized and convenient. All components (widgets) can be used directly without setting up
2 Performance comparison
The performance of Ajax applications depends on several aspects of the web application:
Ø Server response time
Ø Network transmission time
Ø Client JavaScript processing time
You can use different frameworks to create program samples and use FireBug to test their performance.
From the perspective of generation mechanism
Asp.net Ajax server control will generate its control code, the generated js file may be slightly larger
The original file of Microsoft Ajax is relatively small, at 82k, and the loading speed is relatively fast.
The original Jquery file is relatively small, around 40k, and the loading speed is relatively fast.
The original file of Ext2.0 is more than 500k, and the loading speed is slightly slow.
Of course, you can improve Ajax performance through performance optimization, reducing unnecessary add-ons, and using caching and other technologies.
3 Ease of use comparison
3.1 Use of Asp.net Ajax
Integrated with the VS2008 development environment, development and debugging are very convenient.
Usually, to implement complex functions, you only need to drag a few controls on the page without having to understand the in-depth working principles. In addition, the ASP.NET AJAX Control Toolkit for server-side programming contains a large number of independent AJAX controls and ASP.NET primitives. There are AJAX function extensions for server controls, which are also very simple to implement. There are a large number of books, source code and video materials on the Internet, and they are also supported by the official Microsoft community.
3.2 Use of Jquery
Microsoft's visual studio 2008 sp1 supports dynamic prompts for jquery. Intelligent prompts can be realized by importing the corresponding vsdoc script in the code page. The framework also has a large number of examples, its documentation is very complete, and various applications are described in detail, and there are many mature plug-ins to choose from.
3.3 Extjs usage
Microsoft's visual studio 2008 also supports dynamic prompts for Extjs. As long as the corresponding vswd-ext script is imported into the code page, intelligent prompts can be realized. The framework also has a large number of source examples, its documentation is very complete, and its various applications are also explained in detail.