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 |
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
- What is Client side and Server side scripting ?
- Are there any security issues with AJAX?
- Is the server or the client in control in AJAX?
- What is the role of Ajax in enhancing user experience?
- Does Java have support for Comet style server-side push?


