Is there any way that an AJAX object can get back a record set?

January 16, 2008 · Filed Under AJAX Interview Questions, Placement Questions 



Don't want to miss a single bit? Subscribe By Email for Daily Jobs

Enter your email address :

All the latest from JobsAdda on Jobsadda.com delivered to your mailbox everyday.

You could build an XML document out of your recordset and send that back to the server, say you had a redord set for a “user” with the following details (name, surname, age, email), you could build an xml document like this:

Code:

Byron
Tymvios
25
email@address.com

User
Someone
39
myAddy@address.com

You can add as many records as you have in your recordset, then once the client has received it you can use javascript to iterate over the ’s in the xml.

Related Articles


Get Latest JobsAdda.com Jobs, news & updates  via Email