The serialization of qx.html.Element and adding it to a parent node after 
deserialization wont't work. The qx.html.Element has a reference on a DOM node. 
After serialization there is no reference on the DOM node whatsoever in the 
string. So after deserialization of the JSON string there, you can not add the 
element to the DOM anymore.

Tino

Am 30.08.2011 um 17:02 schrieb Daniel Wagner:

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]<mailto:[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

Tino Butz
Mobile Architect

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon: +49 721 91374-4488
[email protected]<mailto:[email protected]>

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Robert Hoffmann, 
Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren

------------------------------------------------------------------------------
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

Reply via email to