This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes  Question to Sas Jacobs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark " Question to Sas Jacobs" Watch " Question to Sas Jacobs" New topic

Question to Sas Jacobs

venkatjava venkat

Joined: Nov 20, 2005
Posts: 5
AJAX can be used in javascript to return text output (used to inject html and javascript dynamically in a page).Text output can be used to return data also, and regular expresssion can extract the required data. We could even use JSON to construct a java script object from a servlet and return it. Now this can be evaled and javascript object is created at runtime. Thus we have many different ways of doing this. Then What is the advantage of returning xml output through AJAX ?
Milesh Dcunha

Joined: Jun 19, 2006
Posts: 13
JSON is language independent Data-interchange format just as XML is ....

The world is becoming an orgy of self-sacrifice when it is precisely the self that should not be sacrificed.
Sas Jacobs
Ranch Hand

Joined: Jun 24, 2006
Posts: 46

I answered this in your previous post which seems to be identical.


Sas Jacobs
Consider Paul's rocket mass heater.
subject: Question to Sas Jacobs
Similar Threads
How to capture output stream after do post from a html form
Beginning XML with DOM and Ajax: From Novice to Professional
How to capture output stream after do post from a html form
Binary Data using AJAX
Ajax and related queries