Howdy,

Mohamed's answer was almost right. But I guess you may rather want to use the "changeOpen" event, when a tree folder is actually opened, and not just selected?

Something like:

myFolder.addEventListener("changeOpen", function(e) { /* do AJAX call */ });

Keep in mind that every property that has been added to a qooxdoo class by addProperty() fires a corresponding event for every change of the property value. That is quite a powerful feature that can be used here for the property "open".

For more info on property events, please have a look at

http://qooxdoo.oss.schlund.de/documentation/event-system#link0

Bye,

Andreas


Mohamed Gharbi wrote:
Hello,

it's simple, when a slectionchanged event occured on a node, you simply send an XmlHttpRequest to the server, with the id of the node selected, you will call a php file for example, who will fetch the information for the node, and then with these information you can add subnodes to your node.

I hope that will help you.

Peace upon you.

    
--------------------------------------------------------------------------------
    From:  /"Assen Assenov" <[EMAIL PROTECTED]>/
    Reply-To:  /qooxdoo-devel@lists.sourceforge.net/
    To:  /<qooxdoo-devel@lists.sourceforge.net>/
    Subject:  /[qooxdoo-devel] How to listen for expanding tree node event/
    Date:  /Wed, 3 May 2006 20:42:16 +0300/
     >Hi
     >
     >I'm beginner in qooxdoo. I'm trying to develop a tree which content is
     >loaded from a SQL Server database. Since the content is too large, I would
     >like to load child nodes only when the user expands the parent node.
     >Could you please advise me how to listen expanding node event? Perhaps I
     >should override some QxTree methods?
     >
     >Kindest Regards,
     >         Assen Assenov , Senior Software Engineer
     >
     >

     ><< winmail.dat >>


--------------------------------------------------------------------------------
Envie d'une signature originale? Créez votre bouton MSN Messenger <http://g.msn.com/8HMAFRBE/2746??PS=47575> .------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Qooxdoo-devel mailing list Qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


--
Andreas Ecker                                  Schlund + Partner AG
Team leader Frontend                           Brauerstr. 48
[EMAIL PROTECTED]                                  76135 Karlsruhe, Germany
fon +49 721 91374 4382                         http://www.schlund.de


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to