PDA

View Full Version : fire a click event when that iframe is clicked



koko2589
2 Nov 2011, 5:46 AM
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(());



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>

koko2589
2 Nov 2011, 8:25 AM
how to use like this??

Ext.get('israellig').on('click', function() {

});

koko2589
3 Nov 2011, 2:39 AM
i tray


listeners: {
render: function(c){
c.getEl().on({
click: function(el){
win.hide();
},
scope: c
});
}

},



its not work with iframe
c.getbody().on({ ????
:((