1. #1
    Sencha User
    Join Date
    Mar 2009
    Posts
    356
    Vote Rating
    0
    Answers
    1
    koko2589 is on a distinguished road

      0  

    Exclamation Unanswered: fire a click event when that iframe is clicked

    Unanswered: fire a click event when that iframe is clicked


    I'd like to fire a click event when that iframe is clicked in
    tankou
    iwhant when click on iframe +close win
    function(){
    win.hide(());

    Code:
    items:[
        {
        
         xtype:'iframepanel',
         region:'center',iconCls: 'flag_israel',
         title:'111155',
         id: 'israellig',
    defaultSrc : 'http://www.one.co.il/cat/leagues/leaguetable.aspx?tableid=1' 
     
         
        }
       ]
    like this
    <iframe onload="this.contentWindow.document.onclick=function(){alert('test')}"></iframe>
    Last edited by koko2589; 2 Nov 2011 at 8:24 AM. Reason: Optional
    my ext js site
    http://www.itoto4.com/

  2. #2
    Sencha User
    Join Date
    Mar 2009
    Posts
    356
    Vote Rating
    0
    Answers
    1
    koko2589 is on a distinguished road

      0  

    Default


    how to use like this??
    Code:
    Ext.get('israellig').on('click', function() {
        
      });
    my ext js site
    http://www.itoto4.com/

  3. #3
    Sencha User
    Join Date
    Mar 2009
    Posts
    356
    Vote Rating
    0
    Answers
    1
    koko2589 is on a distinguished road

      0  

    Default


    i tray
    Code:
    listeners: {
    render: function(c){
    c.getEl().on({
    click: function(el){
    win.hide();
    },
    scope: c
    });
    }
    
    },
    its not work with iframe
    c.getbody().on({ ????
    my ext js site
    http://www.itoto4.com/