PDA

View Full Version : Events from panel with iframe not firing



anpe
19 Jul 2011, 2:09 AM
Hi

I have created a panel and for it html content I have iframe with webpage. I'm trying to listen events when for example panel is tapped but I can't get any event fired. Here are the examples codes how I have tried to create listener:

1.
listeners:{
el:{
tap: function(){
console.log("tapped");
},
scope: this
}
}

2.
listeners:{
afterrender: function(c) {
c.el.on('tap', function(){console.log("tapped");});
}
}

Is there something wrong for my examples or is it even possible to catch events from panel with iframe?