title: Can events fired from an iframe be handled by elements in its parent?
body: <p>Suppose I have a page located at <code>www.example.com/foo</code>, and it contains an <code>&lt;iframe&gt;</code> with <code>src="http://www.example.com/bar"</code>. I want to be able to fire an event from <code>/bar</code> and have it be heard by <code>/foo</code>. Using the Prototype library, I've tried doing the following without success:</p>
  
  <blockquote>
    <p>Element.fire(parent, 'ns:frob');</p>
  </blockquote>
  
  <p>When I do this, in Firefox 3.5, I get the following error:</p>
  
  <blockquote>
    <p>Node cannot be used in a document other than the one in which it was created"  code: "4
    Line 0</p>
  </blockquote>
  
  <p>Not sure if that's related to my problem. Is there some security mechanism that's preventing scripts in <code>/bar</code> from kicking off events in <code>/foo</code>?</p>