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.

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

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.

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.

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

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.

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

Resources
• Ajax developers compile mode: http://www.ajaxpatterns.org
• XMLHttpRequest Tutorial: Dynamic Web Interface: http://www.xml.com/pub/a/2005/02/09/xml-http-request.html
• JavaScript performance benchmark: http://blogs.ebusiness-apps.com/dave? P = 14
• Ajax resources: http://www.ajaxmatters.com
• JavaScript specification: http://www.ecma-international.org/publications/standards/Ecma-262.htm
• JavaScript Object Identifier: http://www.crockford.com/JSON/index.html
• Mozilla's Venkman JavaScript Debugger: http://www.mozilla.org/projects/venkman/
• Xml dom reference: http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/
Xmlsdks/html/e9da2722-7879-4e48-869c-7f16714e2824.asp
• Microsoft Dynamic HTML reference: http://msdn.microsoft.com/library/default.asp? Url =/
Workshop/author/DHTML/reference/dhtml_reference_entry.asp
• Gecko DOM reference: http://www.mozilla.org/docs/dom/domref/
• "" Porting ie applications to Mozilla"
Http://www-128.ibm.com/developerworks/web/library/wa-ie2mozgd/
• Mozilla XUL reference:
Http://www.xulplanet.com/
• Microsoft XAML reference:
Http://windowssdk.msdn.microsoft.com/library/default.asp? 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"
Http://www.adaptivepath.com/publications/essays/archives/000385.php
• Jetbrains intellij idea:
Http://www.jetbrains.com/
• Microsoft Visual Studio:
Http://msdn.microsoft.com/vstudio/
• Jseditor:
Http://jseditor.sourceforge.net/
• Jseclipse:
Http://www.interaktonline.com/Products/Eclipse/JSEclipse/Overview/
• ActiveState Komodo:
Http://www.activestate.com/Products/Komodo/
• XHTML:
Http://www.w3.org/TR/xhtml1/
• Document Object Model:
Http://www.w3.org/DOM/
• Cascading Style Sheets:
Http://www.w3.org/Style/CSS/
• Extensible Stylesheet Language:
Http://www.w3.org/Style/XSL/
• XForms:
Http://www.w3.org/MarkUp/Forms/
• Scaling vector graphics:
Http://www.w3.org/Graphics/SVG/
• XPath:
Http://www.w3.org/TR/xpath
• Ajax. Net:
Http://ajax.schwarz-interactive.de/csharpsample/default.aspx
• Backbase:
Http://www.backbase.com
• Bitkraft:
Http://www.tiggrbitz.com/
• DJANGO:
Http://www.djangoproject.com/
• Dojo:
Http://www.dojotoolkit.org/
• DWR (Direct Web reporting ):
Http://getahead.ltd.uk/dwr/
• Mochikit:
Http://mochikit.com/
• Prototype:
Http://prototype.conio.net/
• Rico:
Http://openrico.org/rico/home.page
• Sajax:
Http://www.modernmethod.com/sajax/
• SARISSA:
Http://sarissa.sourceforge.net/doc/
• Script. aculo. Us:
Http://script.aculo.us/
• Ruby on Rails:
Http://www.rubyonrails.org/
• 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"
Http://www.javaworld.com/javaworld/jw-06-2005/jw-0620-dwr.html
• 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.
Http://www.javaworld.com/channel_content/jw-tools-index.shtml
• 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.
Http://www.javaworld.com/channel_content/jw-xml-index.shtml
• 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.
Http://www.javaworld.com/channel_content/jw-ui-index.shtml

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: info-contact@alibabacloud.com 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.