Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can the server script past back the array in the AJAX

 
albert sie
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can teach me how to convert it to string type?
i try many way cannot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic