I,
The latest tools and Technology
XML-based Asynchronous JavaScript, Ajax for short, is the current web Innovation (known as Web2.0) is a crown. Thanks to the various technologies that make up Ajax, web application interactions such as Flickr, backpack, and Google have made a qualitative leap in this regard. This term is derived from the conversion from Web applications based on web pages to data-based applications. In data-based applications, user-required data, such as the contact list, can be retrieved from Service And can be dynamically written into the web page, rendering the slow web application experience as a desktop application.
Although most developers have used XMLHTTP or IFRAME to load data in the past, we have only seen that traditional developers and companies are adopting these technologies. Just like a new programming language or model with more pain, developers need Learning New skills and how best to use them New technologies.
Ii. Ajax Mode
Many important technologies and Ajax development modes can be obtained from existing knowledge. For example, an application that sends a request to the server must contain the request sequence, priority, timeout response, error processing, and callback. Many of these elements have already been included in the Web service, just like the current SOA. Ajax developers have a complete knowledge of system architecture. At the same time, with the maturity of the technology, there will be many places to improve, especially the usability of the UI part.
Ajax development is very different from traditional CS development. These differences introduce new programming problems, the biggest problem is the ease of use. Because Ajax depends on the JavaScript and XML of the browser, the compatibility and supported standards of the browser become as important as the runtime performance of JavaScript. Most of these problems come from the combination of browsers, servers, and technologies. Therefore, you must understand how to best use these technologies.
Ajax proposes a new development method based on various changing technologies and a strongly coupled client server environment. Ajax developers must understand the traditional MVC Architecture, which limits the application layer Between Boundary. At the same time, developers also need to consider the external CS environment and use Ajax technology to redefine the MVC boundary. Most importantly, Ajax developers must disable the use of page collections to consider web applications and consider them as a single page. Once the scope between the uidesign and the service architecture is strictly differentiated, developers need to update and change the technology set.
3. Always thinking about users
The biggest opportunity for Ajax is the user experience. In the process of making applications respond quickly and innovate, the rules defining web applications are being rewritten. Therefore, developers must pay more attention to users. Now users are getting used to how to use web applications. For example, users usually want to wait several seconds and screen refresh after each button is clicked, but Ajax is breaking this long-time situation. Therefore, the user needs to experience the response of Button clicking again.
Availability is another exciting aspect of Ajax and several novel technologies have been created. One of the most striking technologies is the "Yellow hiding" technology. Before data is updated, the user interface turns yellow, and the original color is restored immediately after the update is completed. Ajax developers free users from the load of Web applications. By carefully using the rich interfaces provided by Ajax, desktop developers will soon find that AJAX is their direction.
Iv. Several tools and technologies
With the rapid emergence of Ajax, I think developers are also looking forward to a rapid increase in this technology. Like any new technology, Ajax needs to be supported by an entire development tool/programming language and related technical systems.
1. Javascript
As shown in the name, the most important and overlooked concept of AJAX is that it is also a JavaScript programming language. Javascript is an adhesive that integrates all parts of an Ajax application. Most of the time, JavaScript is often considered by server developers as something that is not needed by enterprise applications. This idea comes from the experiences of writing JavaScript code: a complicated and error-prone language. Similarly, it is considered that the application logic is randomly distributed on the server and client, which makes the problem difficult to be discovered and the code is difficult to reuse. In Ajax, JavaScript is mainly used to transmit data on the user interface to the server and return results. The XMLHTTPRequest object is used to respond to data transmitted over HTTP. Once the data is returned to the client, the Dom can be used to immediately place the data on the network.
2. XMLHttpRequest
The XMLHTTPRequest object has been implemented in most browsers and has a simple interface that allows data to be transmitted from the client to the server, but does not interrupt the user's current operation. The data transmitted using XMLHttpRequest can be in any format, although the data in XML format is recommended from the name.
Developers should be familiar with many other XML-related technologies. XPath can access data in XML documents, but it is necessary to understand xml dom. Similarly, XSLT is the simplest and fastest way to generate HTML or XML from XML data. Many developers are familiar with XPath and XSLT, so Ajax chooses XML as a data exchange format that makes sense. XSLT can be used on clients and servers. It can reduce a lot of application logic written in JavaScript.
3. CSS
To view Ajax applications correctly, CSS is an important weapon for Ajax developers. CSS provides a mechanism for separating application styles and designs from the content. Although CSS plays a vital role in Ajax applications, it is also a major obstacle in building and creating cross-browser applications because different browser vendors support different CSS levels.
V. Server Side
However, unlike the client, Ajax applications on the server are still based on the Java,. net, and PHP languages. The main method in this field is not changed.
In this case, our interest in the Ruby on Rails framework has rapidly increased. More than a year ago, Ruby on Rails attracted a large number of developers to build Web and Ajax applications based on their powerful functions. Although there are still many Rapid Application Development Tools, Ruby on Rails seems to have reserved the ability to simplify the construction of Ajax applications.
Vi. Development Tools
In the actual construction of Ajax applications, you need not only a text editor. Since Javascript is not compiled, it can be easily written and run in a browser; however, many tools provide useful extensions such as syntax highlighting and Intelligence Complete.
Different ides provide different levels of JavaScript support. Intellij idea from jetbrains is a better IDE for Javascript development, although many developers also like Microsoft's Visual Studio (promised to improve Ajax support in the latest version ). Eclipse contains two free JavaScript editor plug-ins and a commercial Komodo IDE from activestat.
Debugging is another problem in JavaScript and Ajax development. Different browsers provide different runtime error messages, while JavaScript defects such as double variable assignment (usually due to lack of data types) Make debugging more difficult. In Ajax development, debugging is more complicated because it needs to identify whether the error is generated by the client or the server. In the past, the Javascript debugging method was to delete all the code and add a row until the error occurs. Now, more developers return to Microsoft Script Debugger for IE and Venkman for Mozilla Browser.
7. browser compatibility
The biggest problem with JavaScript programming comes from the support of various technologies and standards by different browsers. Building a program running on different browsers (such as IE and Firefox) is a difficult task. Therefore, several Ajax JavaScript frameworks can generate JavaScript Based on the server logic or tag library, or provide client JavaScript libraries that comply with cross-browser Ajax development. Some popular frameworks include Ajax. net, backbase, bitkraft, Django, dojo, DWR, mochikit, prototype, Rico, sajax, SARISSA, and script. aculo. Us.
These frameworks give developers more space to worry about cross-browser issues. Although these frameworks improve the developer's ability to build applications, the vendor has developed a more detailed packaging component solution for the user interface, therefore, some other factors need to be considered in the Ajax component market. For example, components that provide a universal user interface, such as the combo box and data grid, can be used to create a good user experience in applications that allows you to view and edit data in a similar way as a data table. However, these components not only encapsulate the user interface of the component, but also include the communication mode with the server. These components usually implement ASP. NET or JSF controls based on the TAG method.
VIII. Outlook
Recently, the competition between IE and Firefox has become so popular that Ajax developers need to be agile enough to respond. Key points are issues such as CSS or XML. Although various browsers form different camps that adopt the latest standards (for example, Mozilla embraces SVG and E4X standards and uses XUL in the latest Firefox beta version, microsoft uses its own XAML technology ). All these technologies represent changes in the current market direction of mainstream JavaScript and XML Ajax.
In general, Ajax developers must follow up on the latest technologies as soon as possible and use highly productive tool sets. Successful Ajax developers also need to pay attention to their users to avoid scaling up any problems. In addition, Ajax developers also need to continuously create new ways to enhance the ease of use of web applications.