On 12 Jan 2009, at 18:03, Rudriko wrote:
>
> Hello,
>
> I'm currently trying to use a JSon object in order to save a qx
> "Label"
> object in MySQL db.
> And then i'd like to "restore" this label.
>
Why would you like to save a graphical object in a relational database ?
Instead, you could have a table with a text column that contain the
text of the label.
I strongly advise you not to save serialized widget in your database.
> This is an example:
>
> My browser do send this JSon to MySQL through request and my php
> function
> (...)
> var serialize = object.serialize();
> var json = qx.util.Json.stringify(serialize);
> this.MyRequester.senddata(json);
> (...)
>
> and then when my browser request for the object i try to do with the
> server
> answer that looks like :
> {classname:"Label" etc...)
> (...)
> var myload_object = qx.util.Json.parseQX(responseText);
> (...)
> There's no error, but "myload_object" doesn't appears on my page.
>
Depending of what's hiden in the (...) I don't see the code that could
add the resurecting Label to a container.
So, you probably have an instance of aLabel, alone, not connected to a
container and than, not shown on screen.
> I probably miss something or misunderstand the point of parseQX, could
> please throw me on the right way ?
> Another terms for the question is : am i abble to save/restore QX
> objects so
> as to retreive all members (properties, methods, etc...)
>
> Thanks for every tips you could bring :)
>
> Kindly, Rudriko
>
>
>
>
>
>
> --
> View this message in context:
> http://n2.nabble.com/Qooxdoo---JSon---How-to-create-%22QX%22-object-from-JSon---tp2146644p2146644.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel