I got cross-window communication working in the source versions, but the build version throws an error that is very difficult to debug.
http://m53s12.vlinux.de/cboulanger/databinding/build/ Don't try it unless you want to debug it - it is not working yet. How it should work: 1) With the button "Open new browser window", create two windows showing the application. They should share the same php session (this works in FF and Safari, not sure about IE), which is necessary, because the php backend stores the shared data simply in $_SESSION. In a real use case, each application can sit in different browsers or on different computers, and the data will come from a database. 2) In both windows, turn the event transport on by clicking on the next button. This starts a request that is repeated each 3 seconds to transport events to the server and polls new events from the server. Both applications register themselves with an unique UUID at the server and start exchanging events through the server. 3) When manipulating the tree in one window (add child, prune, rename), the "change" and "changeBubble" events that do the synchronization of synchronized trees in the application itself, are transformed into data structures and sent to the server and picked up by the other application, and the tree(s) manipulated accordingly. Of course, in a real application, the server would not simply forward the event, but check permissions, save it into database, and so on. 4) Please note that this feature does not work with the random tree generation since each application is sent a completely different tree - and therefore those trees cannot be synchronized. As I said, it works beautifully here on my local computer in the source version, but throws a cryptic error in build. It would be very helpful if a friendly qooxdoo guru could have a look at the error (it occurs whenever you turn the message transport on) and help me at least locate the source of the error. If that helps, the source code of the application is here: https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib/qcl/trunk/application/databinding/source/class/databinding/Application.js and of the library package here: https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib/qcl/trunk/frontend/source/class/qcl/databinding/event/ Thanks, Christian -- View this message in context: http://n2.nabble.com/Databinding-for-TreeVirtual-tp2886079p2906196.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
