Jason,

I agree with you that XML in prototype is kind of a pain since (among
others):
- getAttribute/setAttribute are not real functions on IE, preventing
you to use them in Enumerable methods
- Since it is not possible to "extend" nodes returned in responseXML,
you cannot use here the convenient readAttribute/writeAttribute
methods that fix the above issue.

So, go JSON without hesitation! :o)

> Is it possible to have data in a JSON object and perform the following
> actions to the object:
>    1)add new data to it related to existing data
>    2)edit existing data in the object
>    3)delete an item from the object

JSON is just a serialization method. Once you have unserialized your
object, it is just a plain object, and you can do whatever action on
it (including the 3 ones you list).
If you need to send the object back to the server, you just have to re-
serialize it and the new JSON string will contain the new version of
your object including all changes you made.

Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to