[Proto-Scripty] Re: JSON and elements / text nodes

2008-11-07 Thread Hector Virgen
Thanks, Kangax. I think that helps answer my question. I was hoping my cookiejar class would be able to store *any* JS object in the client cookie, but now I realize that it's not easy and probably unneccessary. -Hector On Fri, Nov 7, 2008 at 11:50 AM, kangax <[EMAIL PROTECTED]> wrote: > > On N

[Proto-Scripty] Re: JSON and elements / text nodes

2008-11-07 Thread kangax
On Nov 7, 2:19 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > Hello, > > Is it possible to convert elements / text nodes to JSON using > Object.toJSON()? I need them in JSON so I can store them in a cookie for the > cookiejar class I am creating. > > sample code: > > var element = new Element('d