aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 15376
    
    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://aspose.com/file-tools
 
subject: can the server script past back the array in the AJAX