• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why Ajax?

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
... because there are some drawbacks in traditional model of request/response.

1. Whole page refreshes so we need to build DOM again.
2. Server can handle one request (latest one) at a time from a single client.

I found these two only (concrete one).

Is that okay?
Thanks.
(Preparing for presentation )
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ajax front-ends can feel smoother and faster.

Smoother because they can refresh part of a page instead of the whole thing, avoiding the flicker of a full page repaint and approaching the interactive richness of a Swing or Win32 GUI. Google maps takes this to an extreme, updating bits of the map that you can't see yet in anticipation that you might go that direction. It gives the illusion of an infinite image. Very cool.

Faster because they can transfer small bits of data instead of large amounts of HTML over the network, and update a page in several small, fast parts instead of the large whole.

Asynchronous requests can help, too, by keeping the front-end more responsive during data requests and running several at the same time.

Here is a good introductory article about AJAX that may have more things you can use.
[ December 27, 2006: Message edited by: Stan James ]
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://ajaxian.com/archives/why-ajax

will give you all the answers..
 
reply
    Bookmark Topic Watch Topic
  • New Topic