wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes multiple responseText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "multiple responseText" Watch "multiple responseText" New topic
Author

multiple responseText

cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77
Hi

How to get mutliple response text in ajax. Any tutorials will really help.

Thanks.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
What do you mean by multiple responseText?

Eric
cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77
I want to update City and State drop down box, depends on the Parish value I am selecting.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
So you design the response to bring back the information together.

You can either use JSON [perfered method] or you can add a special character sequence and split the values.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60802
    
  65

Or you could use XML, but I heartily agree with Eric that JSON is the best means to return complex data.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple responseText