File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes To the authors: best way to start learning Ajax? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "To the authors: best way to start learning Ajax?" Watch "To the authors: best way to start learning Ajax?" New topic

To the authors: best way to start learning Ajax?

Paul Santa Maria
Ranch Hand

Joined: Feb 24, 2004
Posts: 236
Hi -

I know virtually nothing about "Ajax". What's the best way to get started? Pick a framework at random? Start from the bottom up, cutting/pasting and experimenting with some JavaScript snippets?

What are your thoughts about a good, gentle, not-too-frustrating introduction to Ajax?

Paul M. Santa Maria, SCJP
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Concerning books, a brain friendly way to start would be Head Rush Ajax. You'll learn the minimum in no time.
Using Ajax is not so difficult, but using it properly is another story. If you want to know more, you can try Ajax In Action. Very instructive.

A little intro:

[My Blog]
All roads lead to JavaRanch
Ryan Asleson
Ranch Hand

Joined: Sep 15, 2005
Posts: 39
Your best bet is to start small and work from there. You can search the web for some tutorial articles on Ajax, and of course any of the fine books available will help you too.

Either way, I recommend that you first learn the basics of Ajax using the bare XMLHttpRequest object. You don't need to completely master it, but you should have at least a vague idea of what it does and how it works, because most Ajax frameworks are built on top of the XHR object. If you have an understanding of what the framework or library is doing for you under the covers, you'll be better equipped to handle problems when they arise.

To get started with Ajax, do a small example like validation or something like that. Doing so will give you a feel for how Ajax interactions work and behave, and once you have that you can move to bigger and better things.

Ryan Asleson<br />Co-Author, <a href="" target="_blank" rel="nofollow">Foundations of Ajax</a> and <a href="" target="_blank" rel="nofollow">Pro Ajax and Java Frameworks</a><br /><a href="" target="_blank" rel="nofollow">Taconite</a> Lead Developer
Paul Santa Maria
Ranch Hand

Joined: Feb 24, 2004
Posts: 236
Ryan - thank you very much: exactly what I was looking for.

Satou - I leafed through "Head Rush Ajax" the other night. Although I like the author (I have both the first *and* second editions of Brett McLaughlin's most excellent "Java & XML"), that particular book was definitely not for me. But thank you for the recommendation!

Your .. PSM
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
I like to go out to the store buy an industrial size container of the stuff, get a nice sponge and start scrubbing. I start with a small spot and work my way up to the bigger stains.

(Its friday, need some fun)

Paul Santa Maria
Ranch Hand

Joined: Feb 24, 2004
Posts: 236
Sorry, Eric - but I've always preferred "Comet"

I browsed through "Ajax in Action" at my local Borders the other night, too. Looks like an awesome book - good job!

They didn't have any copies of "Pro Ajax and Java Frameworks", so I don't have any opinion on that one, yet. Who knows - maybe I'll win a copy here ;-)
[ September 22, 2006: Message edited by: Paul Santa Maria ]
subject: To the authors: best way to start learning Ajax?
It's not a secret anymore!