Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] handling onclick event for textnode

Expand Messages
  • Satyam
    myTree.subscribe( clickEvent , function (oArgs) { var clickedNode = oArgs.node; // do whatever you want with it }); You can also find out the node, if any,
    Message 1 of 3 , Jun 1, 2009
    • 0 Attachment
      myTree.subscribe('clickEvent', function (oArgs) {
      var clickedNode = oArgs.node;
      // do whatever you want with it
      });

      You can also find out the node, if any, that has the focus (highlight)
      by reading the property currentFocus:

      var focusedNode = myTree.currentFocus;

      Satyam

      rumesh_san escribió:
      > Hi,
      >
      > I want to store the TextNode object in javascript variable when the particular TextNode was click. Do I have to handle onclick event for TextNode?
      >
      > If anyone can provide an answer, it will be very helpful
      >
      > Thanks in advanced
      >
      > Regards,
      > Rumesh
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - www.avg.com
      > Version: 8.5.339 / Virus Database: 270.12.48/2147 - Release Date: 05/31/09 20:45:00
      >
      >
    • rumesh_san
      Thanks Satyam, Its working :)
      Message 2 of 3 , Jun 1, 2009
      • 0 Attachment
        Thanks Satyam, Its working :)


        --- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
        >
        > myTree.subscribe('clickEvent', function (oArgs) {
        > var clickedNode = oArgs.node;
        > // do whatever you want with it
        > });
        >
        > You can also find out the node, if any, that has the focus (highlight)
        > by reading the property currentFocus:
        >
        > var focusedNode = myTree.currentFocus;
        >
        > Satyam
        >
        > rumesh_san escribió:
        > > Hi,
        > >
        > > I want to store the TextNode object in javascript variable when the particular TextNode was click. Do I have to handle onclick event for TextNode?
        > >
        > > If anyone can provide an answer, it will be very helpful
        > >
        > > Thanks in advanced
        > >
        > > Regards,
        > > Rumesh
        > >
        > >
        > >
        > > ------------------------------------
        > >
        > > Yahoo! Groups Links
        > >
        > >
        > >
        > > ------------------------------------------------------------------------
        > >
        > >
        > > No virus found in this incoming message.
        > > Checked by AVG - www.avg.com
        > > Version: 8.5.339 / Virus Database: 270.12.48/2147 - Release Date: 05/31/09 20:45:00
        > >
        > >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.