Results 1 to 2 of 2

Thread: event at HTML TAG

  1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    10
    Vote Rating
    0
      0  

    Default 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
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •