-
2 Nov 2011 5:46 AM #1
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(());
like thisCode:items:[ { xtype:'iframepanel', region:'center',iconCls: 'flag_israel', title:'111155', id: 'israellig', defaultSrc : 'http://www.one.co.il/cat/leagues/leaguetable.aspx?tableid=1' } ]
<iframe onload="this.contentWindow.document.onclick=function(){alert('test')}"></iframe>Last edited by koko2589; 2 Nov 2011 at 8:24 AM. Reason: Optional
-
2 Nov 2011 8:25 AM #2
how to use like this??
Code:Ext.get('israellig').on('click', function() { });
-
3 Nov 2011 2:39 AM #3
i tray
its not work with iframeCode:listeners: { render: function(c){ c.getEl().on({ click: function(el){ win.hide(); }, scope: c }); } },
c.getbody().on({ ????



my ext js site
Reply With Quote