Three forms of Ajax (Open source project)

Source: Internet
Author: User
Tags format implement interface client access
Ajax| Project

1 greatly reduces the server side and the client data traffic, unlike the submit-responce era needs a lot of HTML script.

2 enrich the client's corresponding, such as the form of a list of prompts input, data validation. Implementation of multilevel lists. Dynamic loading of tree stump menu and so on

The thing to be aware of: Ajax design time must consider the user interface Event trigger disorder. 1 for some of the places to write, according to the situation to implement the interface locking function, that is, before the completion of the submission, can not do other operations. 2 any operation to the user Load ... Such a hint


Three forms of Ajax

1 The most original Xmlhttprepuest way,

This is the most flexible way, and you have the freedom to access any generic gateway interface, return your own defined XML format, and then display it through an XML script. Of course, this is the most original method, not suitable for large-scale application development

2 JavaScript encapsulated function library
Protype, Ricoajaxframework and other Ajax libraries. They encapsulate most of the details of manipulating Ajax, and you usually just have to write some handler, and then the server side returns the corresponding XML in a fixed format.

There are, of course, many scripts that enrich application development.

2.1 Dojo and so on, a very abstract library, redefining its own event distribution mechanism, but the interface is still an HTML interface.

2.2 Bindows,qooxoo and other JavaScript widgets, they use their own interface style, basically, it's hard to combine with the original website

Regardless of the JavaScript library above, it can be annoying to call up some overload that the browser is loading.

Of course, if you use this, you have achieved the second level, that is, Ajaxian.

3 and a script language list of the tag library, automatic generation of Ajax access script, and server-side interaction
DWE Java
Ajaxac PHP

In the form of encapsulation, the operation of Ajax Javacript is encapsulated, better implementation of the component-level reuse.

If you come to this, you should be counted into socialism.

4 of course the intermediate goal is dynamically loaded scripts and official programming languages such as JSF combined, and then can be dynamically transformed with GUI means. Implement a real Web application ria.

<

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.