It's not a secret anymore!
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
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
I agree. Here's the link:
subject: Question to Sas Jacobs
It's not a secret anymore!