>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Crossing borders: Ajax on Rails - ajax rails time view java javascript listing link

 
Registered tutorials: 501
Registered Users: 33128



Rating: 5 out of 1 votes cast


  
Category: Ruby on Rails

Tags Map

action adding advantage ajax ajaxupdater application applications apply approach approaches article articles asynchronous attention author book borders browser bruce build call called change click client clock code common community complete completion complex complexity concepts content controller core creates crossing current debugging def defaults definition developers developerworks development div document download dramatically drop edit effects element empty execute experience figure find form forms framework frameworks function garrett generate hajax helper html http ibm includes information integration java javascript landscape language languages lets level libraries library link linkto linktoremote list listing method methods model notice open options page pages parameter periodically periodicallycallremote platform popular previous problem problems programming project prototype rails rate remote render rendering renders request requests require resemble resources response result ruby script scriptaculous series server show showhclick showrhtml shows side simple simply single source submit support tags tate technical technique techniques technologies technology template templates text time timer top true typetextjavascriptscriptscript ui update updated updates url usage user users view views web works xml

Keyword Cloud Navigation Map

Crossing borders: Ajax on Rails

Digg this   Post to del.icio.us

Abstract: This article walks through a couple of simple Ajax examples and, along the way, shows you what makes the Ruby/Ajax combination so successful. In the next article in this series, I'll dig into JavaScript as a programming language.

Ajax defined

Ajax stands for Asynchronous JavaScript + XML. Jesse James Garrett, an information architect, came up with the term in 2005 to describe a technique that had seen niche use for nearly a decade (see Resources). Ajax use then exploded, with a simultaneous growth in libraries, popular Web sites, and literature.

Ajax redefines the basic browser's usage model, which was to render a page at a time. Ajax lets the browser communicate with the server between page updates. The upside is a richer user experience, at the cost of complexity. Ajax works by sending XML between the client and server using JavaScript client-side libraries. Ajax developers can send asynchronous requests from the client at any time, so user interactions can continue while the server processes the requests. This is the flow of an Ajax request:

  1. An event, such as a user mouse click or a programming timer trigger, initiates a JavaScript function.

  2. The JavaScript function creates a request for a partial page rather than a full page. JavaScript then sends that request to the Web server via HTTP.

  3. This HTTP request invokes a script on the server, such as a Rails controller method or a Java™ servlet.

  4. The server script creates an XML document and returns it to the client.

  5. Upon receiving the result, the client asynchronously creates, updates, or deletes part of the Web page, such as a list element, div tag, or image.

Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 252
Unique Hits: 204


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0 0 0.4 0.5 4.6 5.6
Current 0 0 0 0 0 0
Previous 0 0 0 0 4 5
Nov 29 0 0 2 2 2 3
Nov 28 0 0 0 0 8 9
Nov 27 0 0 1 2 8 11
Nov 26 0 0 0 0 11 12
Nov 25 0 0 1 1 2 2
Nov 24 0 0 0 0 0 0
Nov 23 0 0 0 0 7 10
Nov 22 0 0 0 0 4 4
Highest 3 6 8 10 23 27


Script Execution Time: 1.03671 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2