title: remote call javascript function from another site
body: <p>I have a upload script in another host and after remote file upload with <code>Ajax</code> I call a function like this :</p>
  
  <pre><code>echo '&lt;script language="javascript" type="text/javascript"&gt;window.top.window.stopUpload('.$result.' , \'res2\' , uploaded , dkey);&lt;/script&gt;';
  </code></pre>
  
  <p>the <code>stopUpload</code> function in the main page should run and do some thing (show pictures and ...)
  but I get Permission denied error</p>
  
  <pre><code>Error: Permission denied to access property "stopUpload"
  </code></pre>
  
  <p><strong>tip :</strong> Imagine I have <code>stopUpload</code> function in <code>pageA</code> and I call send file with ajax to upload in my another Host page called <code>pageB</code> I have a <code>stopUpload</code> function in pageB which should run on pageA after upload complete but face to above error ...</p>
  
  <p>Can I call javascript function in another page remotely?</p>
  
  <p>Thanks.</p>