Hi, So, I'm working on my little home automation client app, and I have a little problem...
This client app will be build according to the server information. I first have to get a config (json) from that server, parse it, and then create the pages/widgets based upon what I find in the config. My problem is how to organize my code to do that? I started from the mobile showcase code. The Application object creates the pages. It also creates a Json store (through a service object, based on code I found in the tutorials), and fetch data. The problem is that the datas are retreived asynchronously, ans are not available when I create the pages, so they can't create their widgets. I tried to fire a "loded" event from my service, and the pages listen to that event. In their callback routine, they ask the service object the infos they need, and create widgets. But it does not work, as I can't add these widgets to the page from the callback; this.getcontent() does not exists... So, how to do that? Thanks, -- Frédéric ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel