AJAX
1 What is Ajax?
Ajax's name is: AsynchronousJavaScript + XML
2.Ajax definition:
Ajax is not a technology, it is actually several technologies, each of which has its own unique technology, together have become a powerful new technology.
3.Ajax include:
XHTML and CSS
Using Document Object Model (DocumentObjectModel) for the dynamic display and interactive
Using XML and XSLT to data and interactive operation
Use XMLHttpRequest to receive asynchronous data
They will use JavaScript bundled together
Web in the development of its latest fashionable term is "an old Huanxinya."
Ajax (AsynchronousJavaScriptandXML) is a combination of Java technology, such as JavaScript and XML programming technology that allows developers to build Java technology-based Web applications, the use of pages and break the heavy-duty practice.
Ajax is a client-side scripting and Web server data exchange Web application development methods. In this way, interactive Web pages do not have to interrupt the process of re-plus CD, can be dynamically updated. Use Ajax, users can create closer to a direct desktop applications, high availability, richer, more dynamic Web user interface.
Asynchronous JavaScript and XML (AJAX) is not a new technology, but that such an approach: the use of several existing technologies - including cascading style sheets (CSS), JavaScript, XHTML, XML and extensible style language conversion (XSLT ), the development of similar appearance and operation of desktop software for Web applications. Ajax realize all the components have been in existence for many years. AdaptivePath user experience strategy department heads and co-founder partner JesseJamesGarrett published in February this year on the website AdaptivePath article invented this term.
Asynchronous refers to the word AJAX applications with mainframe servers linked approach. If you use the old model, whenever a user performs a certain operation, to request access to new data server, a Web browser will update the current window.
If the use of AJAX asynchronous mode, the browser would not have to request users such as operators, there is no need to update the entire window to display newly acquired data. Return as long as the transmission of data in XML format used in the web browser running JavaScript code can be associated with the server. JavaScript code can be added to the style sheet to retrieve the data, then existing website to be a part of the show.
In many consumer-oriented applications, and GoogleMaps Google's Gmail is the most common example. In Gmail, AJAX responsible for how to open the conversation threads, to show the different text of the e-mail. In Maps, AJAX allows users with a seamless manner seems to drag and rolling map.
Yahoo's Flickr Photo Sharing Application and the Amazon site A9 search engine. In addition, Yahoo's new Web mail service may soon attract supporters AJAX great concern, based on the service after Oddpost acquisition by Yahoo technology.
These UI are fully use the background channel, but also by some developers as "Web2.0" and might lead to everyone interested in the Ajax applications soared.
However, AJAX applications software vendors increasingly focus aimed at the enterprise. For example, the WebAccess Scalix e-mail application software is actually greater than the Microsoft Outlook e-mail their own Web interface more like Outlook.
But AJAX application software with the field of application of certain limitations. Because they use some of the latest Web technology, it can only in certain Web browsers running - but AJAX browser is applied more and more.
Ajax
Ajax, for Asynchronous JavaScript and XML is the use of client-side script and the Web server data exchange Web application development methods. In this way, interactive Web pages do not have to interrupt the process of re-plus CD, can be dynamically updated. Using Ajax, you can create closer to a desktop application, direct, high availability, and even richer, more dynamic Web user interface.
Ajax process
An interactive Ajax from a group called XMLHttpRequest JavaScript objects began. As the name suggests, it allows a client-side scripting to implement HTTP requests, and an XML format will be analytic server response. Ajax the first step in the process is to create a XMLHttpRequest examples. Use HTTP methods (GET or POST) to deal with the request, and will target URL to the XMLHttpRequest object.
Now, remember how Ajax in the first asynchronous processing state? When you send HTTP requests, you do not want to wait for the browser and server hung response Instead, the pages you wish to continue to respond to users through the interactive interface and the server response to the arrival of the real deal with them. To complete it, you can XMLHttpRequest register a callback function, and asynchronous request to distribute XMLHttpRequest. Control immediately be returned to the browser, when the server response arrived, the callback function will be called.
In JavaWeb server, at the request of any other HttpServletRequest and the same. Analytical parameters in the request, servlet implementation of the necessary application logic, will respond to the sequence of XML, and write it back to HttpServletResponse.
An interactive Ajax from a group called XMLHttpRequest JavaScript objects began. As the name suggests, it allows a client-side scripting to implement HTTP requests, and an XML format will be analytic server response. Ajax the first step in the process is to create a XMLHttpRequest examples. Use HTTP methods (GET or POST) to deal with the request, and will target URL to the XMLHttpRequest object.
Now, remember how Ajax in the first asynchronous processing state? When you send HTTP requests, you do not want to wait for the browser and server hung response Instead, the pages you wish to continue to respond to users through the interactive interface and the server response to the arrival of the real deal with them. To complete it, you can XMLHttpRequest register a callback function, and asynchronous request to distribute XMLHttpRequest. Control immediately be returned to the browser, when the server response arrived, the callback function will be called.
In JavaWeb server, at the request of any other HttpServletRequest and the same. Analytical parameters in the request, servlet implementation of the necessary application logic, will respond to the sequence of XML, and write it back to HttpServletResponse.
An interactive Ajax from a group called XMLHttpRequest JavaScript objects began. As the name suggests, it allows a client-side scripting to implement HTTP requests, and an XML format will be analytic server response. Ajax the first step in the process is to create a XMLHttpRequest examples. Use HTTP methods (GET or POST) to deal with the request, and will target URL to the XMLHttpRequest object.
Now, remember how Ajax in the first asynchronous processing state? When you send HTTP requests, you do not want to wait for the browser and server hung response Instead, the pages you wish to continue to respond to users through the interactive interface and the server response to the arrival of the real deal with them. To complete it, you can XMLHttpRequest register a callback function, and asynchronous request to distribute XMLHttpRequest. Control immediately be returned to the browser, when the server response arrived, the callback function will be called.
In JavaWeb server, at the request of any other HttpServletRequest and the same. Analytical parameters in the request, servlet implementation of the necessary application logic, will respond to the sequence of XML, and write it back to HttpServletResponse.






Leave a Reply