This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes can the server script past back the array in the AJAX Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "can the server script past back the array in the AJAX" Watch "can the server script past back the array in the AJAX" New topic
Author

can the server script past back the array in the AJAX

albert sie
Ranch Hand

Joined: Jan 15, 2006
Posts: 108
i know when using AJAX the client will send the parameter to a server script. In the server script, for passing back the value you need to use the 'echo' for php and 'out,println' for java. if i have the array to pass back, is it the script can pass on? if can then how i can display out the value using 'responseText' method? coz the responseText value will assign into the array in order to display out one by one by using the splitter.

who familiar with this problem please give the method or concept to me.Thank you.

regards,
albert


JAVA the only can called technology
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15362
    
    6
Are you asking how to pass back an array that is on the serverside code?

You would have to convert it to a string format and wrote the string to the document.

Eric
albert sie
Ranch Hand

Joined: Jan 15, 2006
Posts: 108
can teach me how to convert it to string type?
i try many way cannot.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: can the server script past back the array in the AJAX
 
Similar Threads
how can i receive two responseText with AJAX
built a program that can directly run in the same page
AJAX query
i to put hyperlink in javascript table
Problem in AJAX and JSP data exchange