Link to home
Start Free TrialLog in
Avatar of Peter1985
Peter1985

asked on

Return multiple data values from an Ajax request

I have Ajax code that can retrieve data from the server and update the page without refreshing it.  This works fine if I only want one item of information and want to display it in a div or span tag.

The problem I'd like help with is being able to send an id number to the server to request an address and contact information and return the data into different text fields.  E.g. I want to return address line 1 to a text field, address line 2 to another text field, etc....

Does anybody know how to return multiple data values from an Ajax request and display them in different elements on the page?

I appreciate any help you can give me.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of Badotz
Badotz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> On the server, use the GetString method of the Recordset...

retval = rs.GetString(2, 999999, "\t", "\n");
No worries - glad to help.
Out of curiousity - why the 'B' grade?
i need help with this same thing.  should i post a new question?
>>i need help with this same thing.

If your problem is not resolved by a PAQ'd question, then yes.

FYI: Once a question has an accepted solution, do not assume it is still being monitored.
Thanx.  I shall post my own question.