Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Purpose of ajax?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear ranches,

Is Ajax a technique for communication between client & server or is it contain more than that. i know that the technique is use for communication but can we do more than that using Ajax. i mean do Ajax has some other purpose as well?

Regards,
Mifraz Marzoon
(SCJP)
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am quite new to ajax but love it already. We have surprised our customers with Ajax so far.
A brief definition is:

A scripting technique for silently loading new data from the server. Although AJAX scripts commonly use the soon to be standardized XMLHttpRequest object, they could also use a hidden iframe or frame. An AJAX script is useless by itself. It also requires a DOM Scripting component to embed the received data in the document.
domscripting.webstandards.org/

Mainly, ajax is the combination of JavaScript/DHTML, DOM and the XMLHttpRequest. It is not a protocol or language, just a technique that allows you to perform asynchronous requests from the Browser to the Server in order to dynamically update the page without a whole page refresh.
However, Ajax is just a client side thing ... you can use any server side technology withit.

Hope this helps
 
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some uses for AJAX interactions at http://java.sun.com/developer/technicalArticles/J2EE/AJAX/
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Google Team worked on AJAX and using in different purpose to make this technology easier and enhance day by day..

Take a look at Google Suggest. Watch the way the suggested terms update as you type, almost instantly.

and the other is Google Maps. Zoom in. Use your cursor to grab the map and scroll around a bit. Again, everything happens almost instantly, with no waiting for pages to reload.
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Diego gave an excellent definition of what AJAX is in simplest terms.

However, where I think things get intersting is when you realize that for most web developers, it represents a whole new way of looking at applications.

When you start to think about being able to refresh small portions of a page, or not update the display at all but do processing behind the scenes between the client and server, you start to realize that you can deliver applications that look, feel and most importantly *function* like fat-clients, you start to see the potential. The whole Rich Internet Application movemement comes about from this.

As many people, including myself, like to point out, AJAX is not new. The actual techniques are a few years old, but the basic underlying approach is even older... as I describe in my book, I did an application around the 2000 timeframe that worked in an "AJAX-like" fashion, but didn't use what we call AJAX today. But, it's true that many, perhaps even most, web developers learned to do things the "standard" way, so AJAX is in fact something new for them, and that's why it's getting so much attention.

I should also point out that AJAX has *nothing* to do with effects, animation, and that sort of thing. That's just good 'ole fashioned DOM scripting, or dHTML if you prefer (some people shun that term nowadays, but it's more or less the same basic thing). Many libraries out there today have AJAX functionality as well as animations and such, so they often get lumped together. It's really not accurate to do so though.
 
Abdul Mifraz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ha.lo.ha Ranches,

Tankz for the replies. thankz all. i was confused about the animation and other stuff were also done by ajax. Frank Zammetti cleared it.

Thanks all again...

Regards,
Mifraz
 
reply
    Bookmark Topic Watch Topic
  • New Topic