Hi Flo, as Thomas explained, serializing a qooxdoo object probably won't work. But maybe (and this is just an idea, never tried it myself) you could extract the object's properties serialize the values, then on the receiving machine create a new object of the same clazz and re-apply the properties. The implementation of qx.core.Object.clone might provide some inspiration.
Regards, Daniel On 08/28/2011 03:16 AM, Flo Wohlfart wrote: > Hi qooxdoo developers, > > I have a general javascript question, however it is related to qooxdoo, > so I decided to ask it here. > > I am trying to send a qooxdoo object from one host to another. This > means I want to JSON.stringify the object on the sending host, send the > string to the recieving host and JSON.parse it to obtain an object > again. > > In my case I want to send an "qx.html.Element" object. However it > appears, that the object is not the same after stringifying and parsing > it. I wrote an example in the playground to illustrate that: > http://www.tinyurl.com/3s6f3pj > > Do you have any idea why I can not add the object again after the > stringify and parse operations? > > Regards, > Flo > > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
