The latest tools and technologies of Ajax developers

Source: Internet
Author: User
Tags xslt

XML-based Asynchronous JavaScript, Ajax for short, is the crown of web innovation (known as Web2.0. 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 obtained from a server independent of the actual web page and can be dynamically written into the web page, color the slow web application experience to make it look like 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 the newProgramming LanguageOr with more pain points, developers need to learn new skills and how to make the best use of these new technologies. This articleArticleIt tells the story about how developers use ajax to analyze the images in the tomb of maomei? Lt; br/>
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 boundaries between application layers. 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.

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.

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.

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 writing JavascriptCodeExperience: 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.

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.

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.

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.

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

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.

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.

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.

Dave Johnson is the founder and evangelist of eBusiness applications, a software consulting company in Vancouver, Canada. He has more than seven years of XML-related experience.

• Ajax developers compile mode:
• XMLHttpRequest Tutorial: Dynamic Web Interface:
• JavaScript performance benchmark: P = 14
• Ajax resources:
• JavaScript specification:
• JavaScript Object Identifier:
• Mozilla's Venkman JavaScript Debugger:
• Xml dom reference: Url =/library/en-US/
• Microsoft Dynamic HTML reference: Url =/
• Gecko DOM reference:
• "" Porting ie applications to Mozilla"
• Mozilla XUL reference:
• Microsoft XAML reference:
Http:// Url =/library/
En-US/wcp_conceptual/html/0ff5f36e-dd84-44d1-aa3e-5bb4f147b169.asp? Frame = true
• James Jesses Garret introduced the term Ajax in his article "ajax: A New Approach to Web applications," (Adaptive Path, February 2005): "ajax: New web application development approach"
• Jetbrains intellij idea:
• Microsoft Visual Studio:
• Jseditor:
• Jseclipse:
• ActiveState Komodo:
• Document Object Model:
• Cascading Style Sheets:
• Extensible Stylesheet Language:
• XForms:
• Scaling vector graphics:
• XPath:
• Ajax. Net:
• Backbase:
• Bitkraft:
• Dojo:
• DWR (Direct Web reporting ):
• Mochikit:
• Prototype:
• Rico:
• Sajax:
• Script. aculo. Us:
• Ruby on Rails:
• For more on Ajax and DWR, read "ajax made simple with DWR," cloves Carneiro Jr. (javaworld, June 2005): For details about Ajax and DWR, refer to "Ajax is simpler to use DWR"
• For more articles on Java development tools, browse the development tools section of javaworld's topical index: For more articles about Java development tools, refer to the index page of Java World development tools.
• For more articles on XML, browse the Java and XML section of javaworld's topical index: For more XML articles, see the Java and XML index pages of javaworld.
• For more articles on UI design, browse the user interface design section of javaworld's topical index: For more articles on uidesign, see the UI design index page of javaworld.

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