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 Welcome Ryan Asleson and Nathaniel Schutta 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 "Welcome Ryan Asleson and Nathaniel Schutta" Watch "Welcome Ryan Asleson and Nathaniel Schutta" New topic

Welcome Ryan Asleson and Nathaniel Schutta

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

This week, we're delighted to have Ryan Asleson and Nathaniel Schutta amongst us, helping to answer questions about their new book "Foundations of Ajax".

We'll be selecting four random posters in this forum to win a free copy of their book provided by the publisher, Apress.

Welcome Ryan Asleson and Nathaniel Schutta!

GenRocket - Experts at Building Test Data
Raj Vijayasundaram

Joined: Jul 15, 2005
Posts: 1
How does AJAX is different from spawning background thread to do an asynchrouns jobs ?.
[ November 14, 2005: Message edited by: Raj Vijayasundaram ]
Eric Edwards

Joined: Oct 13, 2005
Posts: 28
What is Ajax?
tito bayuadji

Joined: Apr 18, 2002
Posts: 12
Sorry if this question is so basic,
what the advantage if we use ajax comparing to other technology.
and also is there another technology that is equal to Ajax?
Matthew Anderson
Ranch Hand

Joined: Apr 18, 2003
Posts: 33
Hi Ryan and Nathaniel,

I've a couple of queries regarding AJAX from a project manager's perspective:

1. How much effort is required to migrate a non-AJAX web application to an AJAX enabled one?

2. How steep is the learning curve for my J2EE developers to pick up AJAX and start implementing on the application?

3. Is there a compromise in server performance on an AJAX application?

My company is currently in the midst of evaluating an AJAX based web application for our clients and we are still deciding whether to go ahead with it.

Paul Strachan

Joined: Oct 24, 2004
Posts: 10
What do I do if my ajax request is being redirected for example?
For a "normal" request this is OK, the browser simply displays the response. Its not so nice when the callback method receives some unexpected HTML content.
Vinit Patil
Ranch Hand

Joined: Mar 17, 2005
Posts: 37
If I understood correctly, AJAX uses lot of JavaScript. Doesn't it add lot of complexity to simple plain HTML? Does AJAX code is maintainable? What if JavaScript is disabled in browser?
Ramesh Shanmugam
Ranch Hand

Joined: Sep 13, 2004
Posts: 132
I am new to Ajax.
I have a XML file in the webserver. Is there a way i can read that XML using AJAX and then update my HTML page. Is so pls tell me how can i so that one.


Ramesh Shanmugam - SCJP 1.5
David Dong
Ranch Hand

Joined: Aug 15, 2004
Posts: 58
If a person who knew XHTML, HTML and Javacript. Can someone write AJAX?

Is it a library we can use?
David Dong
Ranch Hand

Joined: Aug 15, 2004
Posts: 58
Does AJax run on any webserver or specific webserver?

How does AJax simplier than HTML with Javascript?
Madeswaran Pachiyappan

Joined: Jun 29, 2004
Posts: 7
From Security side,is there any advantage of using AJAX over other technology.

Madeswaran P,<br />Chennai,<br />TamilNadu.
Julien Castelain

Joined: Sep 27, 2005
Posts: 29
hi ,

Is AJAX that easy (like everyone seems to say)?
And why is it called AJAX ?
Is it just Javascript with HTML to make "classic"
sites look a bit more "dynamic" ?
Raghuram Srinivas

Joined: Jun 27, 2005
Posts: 4
How different is Ajax from the technology that is/was being used from a long time in websites like (e.g. http online chatting application)
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Forgot to mention that no responses to this thread will count towards winning a book. Please ask questions in new threads. This is simply a welcome message.

Thank you.
Eelco den Heijer
Ranch Hand

Joined: Jan 17, 2002
Posts: 61
Hi Ryan and Nathaniel,

1. From the things I read about Ajax, it looks like it's an extension to the HTTP protocol; using web pages with AJAX you can do things that you can't do with HTTP 1.1 (loading or reloading data without a page refresh). Do you think AJAX will evolve towards something like HTTP 1.2 or HTTP 2.0?

2. There are numerous initiatives to overcome browser differences within the AJAX community. Do you think these initiatives should be driven by the market/ community, or should they be driven top-down (from a standards organisation like W3C)? And what are your opinions on Xforms from W3C? Should the ideas from AJAX and XForms be merged?

Best regards,
Eelco den Heijer
Amsterdam, Netherlands

== <br />Rgrds,<br />Eelco<br /> <br />SCJP, SCJD, SCBCD, SCWD, SCEA
Nate Schutta
Ranch Hand

Joined: Mar 09, 2004
Posts: 39
Ajax is a technique/set of technologies that allow you to communicate with the server in an asynchronous manner. Using JavaScript, you can manipulate the DOM and avoid a full page refresh. For more info, read Foundations of Ajax and check out: What is Ajax/ and
Ajax: A New approach to Web Applications

You can achieve somewhat similar ends with iframes though that has its own set of issues. Of course there are a number of proprietary approaches but most require plugins or special development environments. Though not entirely standards based, Ajax relies on simple technologies that most web developers already know � XHTML, JS, DOM, XML, etc. Best of all, it works with whatever backend technology you are most familiar with be that Java, C#, PHP, whatever.

With an existing app, we would recommend introducing Ajax bit by bit � to do a complex bit of validation or improve usability in some way. For developers that already know HTML, DOM, and JS, the learned curve is pretty smooth. As far as server performance is concerned � you will typically make more, finer grained calls but provided your server is architected properly and you test it, you should be fine. We can swamp a server with any web technique!

Personally, I wouldn�t say that Ajax makes apps significantly more complex � the claim that it�s rocket science is overblown. Yes, you will have to write more JavaScript however, there are a number of libraries to help out!

Reading XML is not a problem � in fact several of the examples in Foundations of Ajax do just that. The XMLHttpRequest object has an attribute: responseXML. The value can be parsed and the data used to update the DOM. It�s a great technique for testing!

Nate Schutta<br />Coauthor of <a href="" target="_blank" rel="nofollow">Foundations of Ajax</a><br />My blog: <a href="" target="_blank" rel="nofollow">Just a Thought</a>
Zhong Li

Joined: Jul 21, 2004
Posts: 1

I checked table of contents and downloaded sample codes. It is great. But one major issue may missing or not address clearly, it is how to handle those events in Ajax. Is there a good model to handle events? How to mapping to server side? I am checking some platforms and tools, like Echo2, DWR, Zimbra and XUI Framework, what is your opion on those platform? Is good choice implement in JSF? Thanks.
Kenneth A. Kousen
gunslinger & author
Ranch Hand

Joined: Sep 18, 2002
Posts: 99
I just wanted to say I really like this book. I started digging through it in a Barnes and Noble cafe and thought it was great. I've ordered it from Amazon and should get it any day now.

Great job guys!

Ken Kousen

Kenneth A. Kousen, Ph.D. (assorted certs), President, Kousen IT, Inc.
Author of Making Java Groovy -
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Howdy ho!

[Asking smart questions] [About Bear] [Books by Bear]
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 672
Sorry what is "Howdy ho"?



We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Nate Schutta
Ranch Hand

Joined: Mar 09, 2004
Posts: 39
Thanks Ken - glad you liked it!
yehof vikings

Joined: Apr 30, 2005
Posts: 1
i am using tacos+tapestry 4.0 in our new project.

so, i'm so instereted in the new book "Foundations of Ajax"
by Ryan Asleson and Nathaniel Schutta
I agree. Here's the link:
subject: Welcome Ryan Asleson and Nathaniel Schutta
It's not a secret anymore!