1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    10
    Vote Rating
    0
    index236 is on a distinguished road

      0  

    Default event at HTML TAG

    event at HTML TAG


    do you have Another way of Event Process in Ext? ( like YUI)

    <script language='javascript'>
    function test(e){
    // i know this way in EXT .

    e = Ext.EventObject.setEvent(e);
    log(e.getTarget().id); ---> result is tg

    /*
    in YAHOO ( yahoo is simple)
    var s =YAHOO.util.Event.getTarget(e);
    log(s.id) ---> result is tg

    */
    }

    </script>

    </head>
    <body>
    <div id='tg' onclick='test(event);'> click </div>

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    37
    Vote Rating
    0
    bucka is on a distinguished road

      0  

    Default


    Code:
    //get html id
    var gt=Ext.get('tagid');
    
    gt.on('click', function(){alert('ok')});
    Is this you need?

Thread Participants: 1