PDA

View Full Version : dataset clone


kentyler
04-23-2003, 01:28 PM
what would be very useful to me would be a class that would take a set of xml data and convert it into a javascript object. Then, on the client side I could interact with that object as the data changed and before submitting the form, serialize the object back into xml and send it back as a parameter. This would be an alternative to dealing with each value individually on the form.

imagine wddx, which provides a simple way to serialize data on the server and write it to the response in a way that will create the object in the client, and an api for working with the data on the client and for reserializing it before sending it back. i use it alot to drive data driven apps and the javascript to manipulate a javascript object is much easier and clearer for me than manipulating the xml structure.

antun
04-23-2003, 01:42 PM
I presume you've looked into datapointers and XPath syntax, right? There's a short explanation here:

http://www.laszlosystems.com/developers/learn/documentation/tutorials/data.php#datapointers

It's not really a JavaScript object, but it is navigable using XPath syntax, which isn't all that different.

Is that what you mean?

-Antun