[CLOSED] How to send the node id as paramenter to a javascript function when the user clicks in a TreePanel?

  1. #1

    [CLOSED] How to send the node id as paramenter to a javascript function when the user clicks in a TreePanel?

    Hi,

    I need to call a javascript function sending a TreePanel node.id as paramenter.

    Could you tell me please how to do that or how to get the current node id directly from the function after the user clicks.

    
    
    
    
    function ShowMessage(message)
    
    
    {
    
    
    alert(message);
    
    
    }
    
    
    <ext:TreePanel ID="TreePanelPortals" Title="Browse" >
    
    
    <Listeners>
    
    
        <Click Fn="ShowMessage" />
    
    
    </Listeners>
    
    
    </ext:TreePanel>
  2. #2

    RE: [CLOSED] How to send the node id as paramenter to a javascript function when the user clicks in a TreePanel?

    Hi,

    <Click Handler="ShowMessage(node.id);"/>

Similar Threads

  1. Replies: 2
    Last Post: Jun 06, 2012, 1:17 PM
  2. Edit store record when user clicks on the row
    By Mr.Techno in forum 1.x Help
    Replies: 6
    Last Post: Aug 29, 2011, 1:40 PM
  3. Replies: 3
    Last Post: May 25, 2010, 4:29 PM
  4. Replies: 3
    Last Post: Apr 08, 2010, 5:28 PM
  5. [CLOSED] How to make an image button pressed when the user clicks it?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 01, 2010, 2:26 AM

Posting Permissions