Ajax tools and techniques of

Related Tags:

  Ajax - confused Guide, Part 1: Summary of Ajax tools and techniques 

  And comprehensive reference tool to help you Quick Start 

DeveloperWorks   Document Options  Bookmark this page as an e-mail sent

  Bookmark this page as an e-mail sent 



  Class: Junior 

  Gal Shachor (shachor@il.ibm.com), Senior Technical Staff, IBM 
  Yoav Rubin (yoav@il.ibm.com), software engineers, IBM 
  Shmulik London (shmulikl@il.ibm.com), researchers, IBM 
  Shmuel Kallner (kallner@il.ibm.com), software engineers, IBM 

  July 23, 2007 

  Ajax (Asynchronous JavaScript + XML) programming technology is gradually leading Web application development areas.    Every day new developers into the Ajax development of the hall, they have different development background.    This series will be the first part of the provision from the IBM ® Ajax Developer Group Ajax single reminder of development resources.    According to author their own ramp-up experience for you provided some practical information, which can help you quickly enter efficient Ajax development track. 

  Ajax is a Web applications, computer technology, which combines JavaScript, Cascading style sheet (Cascading Style Sheets, CSS), HTML, XMLHttpRequest object and Document Object Model (Document Object Model, and DOM), the standards for more information Please refer to reference materials.    In the browser running on Ajax applications in a way asynchronous communication with the Web server, and only part of the updated pages.    Ajax through the use of technology, can provide rich, browser-based user experience. 

  Ajax at the beginning of the trip before, need to know a lot of different languages, standards, tools and libraries.    In the beginning it is necessary to make a choice between different options and combinations to a development environment may be some reluctance.    The authors in accordance with their own ramp-up (the initial phase of the project preparation work) experience help you on the road to avoid likely to be encountered by some of the more common and annoying problem. 

  DeveloperWorks Ajax Ajax please visit the Resource Centre Resource Centre here almost won on the Ajax programming model all the information, including the various articles and Guide, forums, blog, wikis, activities and news. 

  master Ajax Ajax series is the best one of the Guide.    The series does not require to know in advance how many Ajax programming knowledge, and describes the various Ajax and related technologies.    If you want to better understand the Web architecture, it may be necessary to Representational State Transfer (REST) be familiar with.    "How to Create a REST Protocol" (see reference) of this article can serve as a good introductory information on aspects. 

  Ajax master reading series, and personally started some development, you will also need a number of other reference information.    W3Schools (see reference) to provide the core technology Ajax (JavaScript, CSS, HTML, DOM, XML, etc.) online reference information. 

  If you are using the Mozilla Firefox browser, then they should use DevEdge Sidebar (see references).    These include various Sidebar Ajax technical standards for indexing, you can use them as a reference guide. 

  Finally, if you think Ajax community to feel, then they should subscribe Ajaxian blog (see references). 

  reference). 

  •   Unfulfilled css attributes, such as minimum / maximum height, selectors, and so on. 
  •   Despite these problems, you should believe that the majority of users are using the browser.    Can also try to use a variety of library to fill a certain extent, the lack of IE6, such as / IE7 / (please refer to reference). 

      IE7 in IE6 on the basis of a lot of significant improvements, such as the label's support.    For developers, hidden improve even more important.    IE7 provides a better performance JavaScript interpreter, and the rehabilitation of IE6 many defects (such as CSS), making compliance with the standards of most Ajax applications need only a small amount of revision will be able to run on the browser. 

      Reference provided links to download.) 

  •   Microsoft Script Debugger: With Microsoft Office (can be downloaded from Microsoft, please refer to reference materials) are released, which can set up in the JavaScript code breakpoint observed variables, but also the implementation of conventional debugging routines.    Note that for debugging, it is proposed that each session before debugging through IE Developer Toolbar disable caching, or debugging will be behind the cache version of the code. 
  •   References to know more about Trident knowledge.) 

      Warning: the browser is not sealed browser is gradually becoming a growing target.    Users can download and install pop-up blockers, label manager, UI themes and other pieces by.    Many of these items will increase to a surprising, very difficult to return and debugging of influence Ajax procedures.    A simple example is that users set up a pop-up window interceptors to intercept through an application to open a new browser window.    This appears to be a harmless pieces by, but it is difficult to 1:00 aware of its impact on the application of procedures, such as consumption of the browser window resources, as well as some hidden part of the application procedure. 

      reference) is one of the most popular.    (To learn more about the function Firebug more details, please refer to the "Ajax Debugging with Firebug").    Firebug is an integrated expansion, which can: 

    •   Use breakpoints, variable Show and progressive approach to debug JavaScript code. 
    •   View network status. 
    •   Show and optimization of the various elements of the DOM tree and CSS. 

      Firebug 1.0 is a powerful and flexible set a milestone in the development of Ajax, is the use of Firefox as the preferred browser strong reasons. 

      references).    These browser through a matching Gecko version of Firefox can provide the same functionality. 

      References) development.    Safari in order to debug applications, recommend the use of a building WebKit.    The building includes: 

    •   After customized with CSS and DOM Inspector browser. 
    •   Drosera: a JavaScript debugger.    Drosera can be used to debug applications, but its properties compared with Firebug relatively limited. 

      If you persist in Safari test applications, it may be open Safari Debug menu, the menu can be read through the DOM tree, CSS and cache. 

      references), get a workpiece can be used for the development of the Basic Web environment, but also can edit HTML, CSS and JavaScript document editor and editorial tools. 

      Note that Eclipse Web Tools environment is not limited to Ajax development, it supports the focus on the Web server-side application development.    Therefore, it provides such as Syntax highlighting and the completion of the basic code of the core functionality.    It did not provide specific tasks in the development of Ajax Debugging features or DOM manipulation functions. 

      reference), and with the Eclipse Web toolbox combination resulting in a powerful, Ajax development needs to support all aspects of the environment.    ATF provided the following characteristics: 

    •   A DOM browser and running CSS Editor 
    •   A JavaScript debugger (through the use of Mozilla XUL operational procedures) 
    •   Network traffic monitoring 
    •   Through the configuration file used for the realization of the simple integration 
    •   And JSLint (see references) integration, to verify the implementation of JavaScript 

      The toolkit is a very valuable features are integrated in the run XUL operational procedures, testing and inspection applications. 

      reference) is a very useful, open source, Eclipse-based environment, and can be downloaded for free.    ATF tools developed specifically for Ajax, and Aptana is different, it is for the development of the Web 2.0 application IDE.    Aptana has integrated Ruby Development Toolkit (RDT), which provides a Ruby-Eclipse integration. 

      Aptana can be downloaded as a complete Eclipse environment (compared with the ATF very simple option), can also be used as a plug-in sets added to the group before setting good Eclipse environment. 

      Aptana environment provided a number of useful features, such as: 

    •   High-quality user guides and technical reference documents 
    •   Ajax workpiece for a complete editing environment, which includes JavaScript code analysis, integration and DOM browser compatibility information 
    •   The use of external Firefox browser debugging features 
    •   The basic integrated Ajax 
    •   Potential marker to the wrong code verification system 
    •   Edit documents on the system of any document, and edit remote files using FTP functions 

      You may find, Aptana is more than ATF easy to install and learn, to meet the development needs of your solution. 

      references) is based on JavaScript unit testing framework, through JUnit (a common unit testing for Java) from transplantation to create the JavaScript.    JsUnit support JavaScript function test case for the definition and support in the browser environment running these test cases.    If you would like to code developed by the implementation of the same unit testing, then JsUnit is a very useful framework. 

      (Reference provided in the link). 

      reference) is a JavaScript library, it introduces a number of powerful Ajax Library to help simplify programming.    Although it can not by itself as a framework for Ajax, but it is several other frameworks (such as script.aculo.us, Moo.fx2, Rico, etc.) core.    Prototype support: 

    •   Basic DOM operation 
    •   Ajax call 
    •   A group of practical function 
    •   Use input fields and forms 

      Prototype is Sam Stephenson Ruby programming style was the inspiration for the development of post, which is currently the MIT (Massachusetts Institute of Technology, MIT) license under an open source project (see references). 

      reference) is the MIT license under an open source project.    It has built on the Prototype, together with Ruby on Rails release.    Script.aculo.us is for the development of rich Web-UI Rails application of the framework of a popular, but it could be with other server-side technology used together.    Script.aculo.us Although described as a thin framework, but it has a very powerful animation features, and includes the following features: 

    •   JavaScript DOM Based on the Construction of simple procedures can provide DOM operation 
    •   Drag-and-drop support 
    •   Some controls and small parts, such as automatic, sliding block and in situ editing 

      2 in the list of examples of Script.aculo.us demonstrated the powerful animation effects.    In this example, when his version of the click, it will gradually fade out attention: 


      References) is a comprehensive framework for Ajax to meet the multiple needs.    Dojo provide: 

    •   JavaScript for the cross-browser stdlib 
    •   DOM operation 
    •   Download time and for optimizing the size of packaging system 
    •   A group of rich, scalable small parts 
    •   Drag-and-drop support 
    •   Animation support 
    •   Very rich integration of the server-side 

      Dojo a selling point is that it is the small parts can be extended, so that they can use the simple small parts to more complex combinations of small parts.    Therefore, the majority of the Ajax framework and the difference is that the Dojo provides a specific programming model guidance function, if compliance with the model, can be like desktop GUI programming interface as Web design. 

      Dojo under the Academic Free License is an open source project, is in the development of the Dojo Foundation (see references).    Dojo is a very active projects, many large companies, such as IBM, Sun Microsystems, AOL, and so provides a Dojo support. 

      Figure 1 shows a Dojo use e-mail application examples.    Can be seen, Dojo provides a tree, table and many other small parts to help create similar desktop UI.    It also simplifies the interaction between small parts. 


      reference visit Rico Web site and agreed on the description of Apache 2.0 license).    It extremely valuable, but the share is very small space.    Rico most prominent features are: 

    •   The use of the rich template DOM operation 
    •   Various small parts, such as folding (accordion), and drop-down LiveGrid (pull down) 
    •   Drag-and-drop support 
    •   Simple animation 
    •   For fillet, management, Color Display and other practical tools 
    •   Simple integration of the server-side 

      Although Rico, including the function less than Dojo framework, but if a function can be used to meet the development needs of UI, then Rico small amount of memory is an advantage.    In particular, the LiveGrid Rico makes small parts such as creating dynamic table of the common tasks become very simple. 

      (see references). 

      (Reference Guide in W3School links guides is a good introductory tutorial).    You should also visit Ajax Patterns site (see references).    Entry is now the fastest hands on - their application to prepare a try. 

      Under one of this series of articles will be through the development of a simple Dojo based on the blog reader, you will be guided Ajax development of newly acquired knowledge to practice.    Ajax has not set foot on the journey?    Quickly.    Continue! 



      original English text. 

  •   DeveloperWorks Ajax Resource Centre contains many can help you get started in Ajax references, including a description of these standards links: JavaScript, Cascading Style Sheets (CSS), HTML, XMLHttpRequest object and Document Object Model (DOM). 

  •   W3Schools provide all the core Ajax technologies (JavaScript, CSS, HTML, DOM, XML, etc.) online reference information. 

  •   Exploration / IE7 / library, it can make up for IE6 flaws. 

  •   Mozilla Developer Center provided a basis for the various technical Ajax comprehensive document. 

  •   Mozilla DevEdge Sidebars site for Firefox users with Ajax technical specifications Index. 

  •   DeveloperWorks Ajax grasp on the series can help you start developing applications. 

  •   "How to Create a REST Protocol" is strongly recommended on the REST publications. 

  •   W3Schools provided on the Duanxiaojinghan Ajax technical information and reference. 

  •   Be on the IE browser engine Trident more information. 

  •   More information on Firebug. 

  •   Firebug on the function to obtain more details, please refer to the "Ajax Debugging with Firebug." 

  •   Explore Firefox Mozilla Gecko layout engine. 

  •   Safari is the browser engine from a WebKit open-source development projects.    More information on WebKit. 

  •   Ajax framework can be used to understand the complete list and their use, see Ajaxian.com 2006 survey results. 

  •   Exploration Massachusetts Institute of Technology (MIT) for the details. 

  •   Academic Free License to explore the details. 

  •   Apache 2.0 license to explore the details. 

  •   Read on Script.aculo.us information. 

  •   Dojo Toolkit is a comprehensive framework for Ajax to meet the wide range of needs. 

  •   Having read the Dojo "HelloWorld" handbook. 

  •   Rico is an open source Ajax framework.    Learn more about its knowledge. 

  •   Ajax mode site provides a common Ajax design patterns complete list. 

  •   Douglas Crockford on his website has provided some interesting articles JavaScript and JSON. 

  •   "The applications from Internet Explorer to Mozilla migration" (developerWorks, July 2005) provided information on the difference between Firefox and IE information. 

  •   Read "Ajax: A New Approach to Web Applications," is the term Ajax in the article for you. 

  •   Access to products and technologies 
    •   Download from the Microsoft Download Center IE Developer Toolbar and Microsoft Script Debugger. 

    •   By adding the Eclipse Web can be a useful tool for the development of the basic Web workpiece environment, as well as HTML, CSS and JavaScript document editor and editorial tools. 

    •   Learn more and download Eclipse Ajax Toolkit Framework (ATF). 

    •   Aptana is a useful open source, Eclipse-based environment, and can be downloaded for free. 

    •   JsUnit is based on JavaScript unit testing framework, it is through JUnit (a common unit testing for Java) and transplanted to JavaScript created. 

    •   JSLint JavaScript is a procedure used to detect problems in the process JavaScript. 

    •   Prototype is a JavaScript library, it introduces a number of powerful functions to help simplify Ajax programming. 


      Discuss 
    •   If you want to feel the atmosphere of Ajax community, then please subscribe Ajaxian blog. 



      About the author 

      Gal Shachor IBM Haifa Research Lab is a senior technical staff and researchers, and middleware in the rich Internet applications and related fields. 


      Yoav Rubin Tekeni Aoun with Israel Institute of Technology Computer Science Department information system professional degree.    Over the past seven years, he has been in the IBM Haifa Research Lab as software engineers, mainly engaged in visualization application development tools and time to deal with the complexity of the field.    His main interest in a Java and Web technology, simplified programming and availability. 


      Shmulik London is the IBM Haifa Research Lab researchers.    He is interested in current professional software component model and Web 2.0. 


      Shmuel Kallner Yeshiva University in New York has information science degree.    In the past 26 years, he has been in different parts of IBM's software engineers, 




    Related articles:

    Removal of a comprehensive analysis of links dotted line summary
      The traditional approach, added to the label attribute code more difficult to modify    <a Href="link1.htm" onfocus="this.blur()"> link1 </ a>    <a Href="link1.htm" onfocus="this.close()"> link1 </ a> ...
    Destination establishment - from entry to the master - for articles
      1.    * HTML language:    First learning HTML hypertext language, some people may believe that, with Frontpage2000 like Dreamweaver and graphical tools on the website no longer need to learn HTML language, but in fact this is a very common misunderstanding.    B...
    CSS Senior Guide Page Layout
      CSS layout used to be easy.    If you have already used by the layout of form, initially will feel more difficult.    In fact, it is not difficult, just different motives, and in practice more meaningful.    You can put all parts of the page as a separate sectio...
    ASP.NET application development CSS planning proposals
      Not too much definition, do not only define a CSS document. WEB according to the standards of my colleagues suggested. WEB application of CSS, can be designated for four documents:    (1) base.css    (2) from.css    (3) frame.css    (4) list.css&nb...
    Div + css layout examples
      <DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  <html> <head>   <meta Http-equiv="content-type" content="text/html;charset=gb2312" />...