aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How did the thought occur? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How did the thought occur?" Watch "How did the thought occur?" New topic
Author

How did the thought occur?

Jitesh Sinha
Ranch Hand

Joined: Jun 19, 2004
Posts: 145
AJAX refreshes only the part of the browser which is required.Isn't that correct?I just wanted to know how this revolutionary idea come to the mind ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61063
    
  66

Microsoft gets the credit for coming up with the idea as part of their Outlook Web Access initiative back in 1999 or so. Of course, they did it in a proprietary manner by making it an ActiveX control, but that's been rectified in IE 7.

It wasn't until years later, when Google began using the idea, and that the name "Ajax" was coined, that the technology began gathering the buzz that it enjoys today.
[ April 10, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jord Sonneveld
Author
Ranch Hand

Joined: Apr 09, 2007
Posts: 31
Originally posted by Jitesh Sinha:
AJAX refreshes only the part of the browser which is required.Isn't that correct?I just wanted to know how this revolutionary idea come to the mind ?


Hi Jitesh,

It's important to note that there isn't some kind of magical Ajax switch that you can flip, and then your applications suddenly exhibit this type of behavior. You will still need to write the code that refreshes the appropriate bits of the page. A more correct statement would be 'Ajax techniques allow you to write code that will refresh parts of the page as needed'. But in essence, yes you are correct: Ajax allows you to refresh certain parts of a page, and not others.
Jitesh Sinha
Ranch Hand

Joined: Jun 19, 2004
Posts: 145
Thanks Bear and Jord for your replies.
I am a complete newbie as far as AJAX is concerned.
My next question is something I have asked a few folks who are already working on AJAX but could not get a satisfactory answer.It is pretty basic actually.
What kind of special technique is used to refresh only a part of the browser?I mean,how only a specific part of browser is made dynamic while other parts are static.If you think question is too basic,don't bother to answer.I will spend some time on it myself and see if I can get the answer.

One risk which I can see from a developer's point of view is that,if developer has to choose which part of the browser to refresh and which not to,he/she can choose not to refresh a part of the browser which is actually required to be refreshed.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61063
    
  66

Originally posted by Jitesh Sinha:
What kind of special technique is used to refresh only a part of the browser?


DHTML. Simply put, your own Javascript functions gain control when an Ajax request completes, with access to the data that is returned as the response. That script controls what happens to the page. It can pick and choose which elements of the DOM to update, or choose to do nothing at all.

A simple example is the Ajax.Updater class from the Protoype library. Using it, you identify an element (usually a div, but can be just about anything) whose content is to be replaced with whatever comes back as the response of the Ajax request.
Jitesh Sinha
Ranch Hand

Joined: Jun 19, 2004
Posts: 145
Thanks Bear.That was helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How did the thought occur?