View Full Version : AJAX responseText ... HELP!

12-04-2009, 06:49 AM
Dear Forum Guys,
I have a problem regarding how to recieve multiple response texts from an Ajax code.

That is: I want to recieve multiple "responseText"s from the ajax code so that i can populate my form in an asp page. I would also like to know how i can send multiple asp or javascipt Variables inside the responseText of an Ajax code, so that when ajax does responseText i could use the variables just sent from another page (i.e the variables are recieved by the same ajax code after doing responseText) to do some specific tasks.

Thank you.

12-04-2009, 02:11 PM
You only ever get one responseText per AJAX call, but you could modify the server side script to provide you with a set of variables joined by a certain character ('/' for example).

Then perform ajax.responseText.split("/") to convert it to an array. Another option is to eval() the responseText, and have the output of the serverside script be whatever javascript you want.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum