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.
<