FrozenDice <[EMAIL PROTECTED]> writes: > I was going through the demos and saw there was a way to have a tree widget > use RPC to get it's children when it was requested(expand a branch). The > demo on the site is broken for some reason > http://demo.qooxdoo.org/current/sample/html/example/RpcTreeFullControl_1.htmland > the page that tells you how to use RPC with different backends has a > broken link for the PHP version > http://qooxdoo.org/documentation/user_manual/rpc?s=backend. My question to > the community is, does anyone have a working example of a tree using RPC to > get it's children, or know of an example online. In addition, does anyone > know/have instructions on how to use widgets and RPC with a PHP backend? I > was trying to do this by hand earlier and if I can get it to work with a > single widget and a bit of code that would be awesome.
Hi Daniel, Last time I checked, the example you're looking at (which I wrote) worked. Currently, trunk appears to be broken with the new property system, so that example (and others) don't even load. I can't test it. The problem you'll have, though, is that there is no RPC server at qooxdoo.org, so the application will not work via the qooxdoo.org web site. You'll have to load the (probably PHP) backend on your local system and run the example locally. Both TreeFullControl and TreeVirtual work well with an RPC backend. The example you're using with TreeFullControl should be fine. A similar implementation with TreeVirtual (catching the treeOpenWhileEmpty event) also works fine in my own app. For an example of using TreeVirtual to retrieve data vis RPC, you could download the Samba4 code. The Samba Web Administration Tool (swat) makes good use of the tree widget and RPC to retrieve the data to fill in when the tree is expanded. (That app is still using 0.6.x -- it won't be upgraded until 0.7 is released -- but the principle is the same.) Cheers, Derrell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
