title: Event listeners on the IFrame with ExtJS4.1.2
body: <p>I am using 'uxiframe' component to load a separate application into a modal window (ExtJS4.1x). 
  Cross domain issues clearly do not allow me to access any part of the IFrame contents. However same domain app's Document in the IFrame is accessible from the parent via <code>iframe.getDoc()</code></p>
  
  <p>The question is this: Is there a way for me to setup DOM listeners on the elements inside the IFrame from the parent modal window?</p>
  
  <p>Thanks and a simple example would be appreciated.</p>
  
  <p><strong>Update</strong> Thanks to @lontiviero for a tip to get me started. Here is what I ended up with:</p>
  
  <pre><code>var bodyEl=Ext.get(iframe.getDoc().body);  //this gives me an Ext.dom.Element object 
  bodyEl.on('click',
            function(event, el,opts){
               console.log("&lt;p&gt; clicked");
            },
            this, //scope
            {delegate:'p'} //options
  );
  </code></pre>