File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How did the thought occur?

 
Jitesh Sinha
Ranch Hand
Posts: 146
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jord Sonneveld
Author
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 146
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 146
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear.That was helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic