• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can the server script past back the array in the AJAX

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can teach me how to convert it to string type?
i try many way cannot.
reply
    Bookmark Topic Watch Topic
  • New Topic