What Is Ajax? Does anyone start learning this. In the past two days, I have been developing a personal website with free space. There is no motivation to use a simple scripting language, and there is basically no free space for Asp.net. If there is a free space, the version cannot be compiled. So I want to use XML + JavaScript to create a new page without refreshing the content. I Googled it and found that AJAX is quite popular (I only know it today, but I am very ignorant ). Let's talk about this and learn from each other.
I have found out what Ajax is.
Ajax is short for Asynchronous JavaScript and XML. It shows a fundamental change in web development, that is, what may be done on the web ........
Ajax is not a technology. It is actually several technologies, each of which has its own unique characteristics. Together, Ajax becomes a powerful new technology. Ajax includes:
- XHTML and CSS
- Use Document Object Model for Dynamic Display and Interaction
- Use XML and XSLT for Data Interaction and operations
- Use XMLHttpRequest for asynchronous data receiving
- Bind them together using JavaScript
The emergence of Ajax concepts opens the prelude to the non-refresh and Update page era. It is a milestone to replace the trend of updating web pages by submitting forms in traditional web development. However, Ajax is not applicable in all places, and its applicability is determined by its features. It has the following features:
1. Retrieve data as needed. The page does not read useless redundant data, but sends a request to the server only when some data is required for a certain interaction during user operations.
2. refreshing the Update page. The client uses XMLHTTP to send a request to obtain the server response data, and uses JavaScript to operate the Dom to update the page without reloading the entire page.
3. The pre-read function can also be implemented through Ajax, but it is not the advantage of Ajax. Its main advantage is in interaction.
Positive effects of Ajax:
1. reduce the burden on the server. Because the fundamental idea of AJAX is to "retrieve data on demand", it is possible to minimize the burden on servers caused by redundant requests and sound shadows.
2. Reduce users' actual and psychological waiting time.
.......................
There are too many. If you are interested in Google, you can find more.
At present, there are more and more Ajax applications, such as Gmail, Google groups, MSN spaces, Google suggest, Google Maps, and MSN Virtual Earth ...........
Even the software giant Microsoft is building a software tool named ATLAS to provide developers with tools that are easy to develop Ajax applications. The early version of this development tool will be released at the Microsoft Developer Conference held in Los Angeles in May. Developers can use Atlas software tools through Microsoft Visual Studio 2005 development tools and web development framework ASP. NET 2.0. These two products are expected to be available in May.
Not only Microsoft companies are interested in Ajax. Sun is also developing an Ajax-style programming tool for the netbeans open-source Java tool project. JSP also has the Ajax tag library, which contains a set of JSP tags, which makes it easier for you to use Ajax technology in JSP pages. The tag Library provides five tags for common Ajax functions:
AutoComplete: Retrieves a list of values that matches the string entered in a text form field as the user types
Callout:Displays a callout or popup balloon, anchored to an HTML element with an onclick event
Select/dropdown: Based on a selection within a dropdown field, a second select field will be populated
Toggle: Switches a hidden form field between true and false and at the same time switches an image between two sources
Update Field: Updates one or more form field values based on response to text entered in another field
It seems that AJAX is the development trend of Web application development.
Google recently published some source code for the Ajax application of the website. The source code of the Google ajaxslt library is disclosed first.
:Http://goog-ajaxslt.sourceforge.net/
Other JavaScript-based XSLT implementations include:
The XSLT/JavaScript interface in Gecko
Xjl: The extendable JavaScript Library