title: AJAX: Permission denied to access property in iframe
body: <p>Hi I created an php website which uses  for AJAX post and was live at <a href="http://sprook.com.au/" rel="nofollow">http://sprook.com.au/</a> but my client change it's domain to <a href="http://www.sprookit.net/" rel="nofollow">http://www.sprookit.net/</a> from his service provider Godaddy and now the firebug says: </p>
  
  <blockquote>
    <p>Permission denied to access property 'stopAjax'</p>
  </blockquote>
  
  <p>here <strong>stopAjax</strong> is my method name.</p>
  
  <p>script is there:</p>
  
  <pre><code>&lt;div class="post_area"&gt;
              &lt;form action="post.php" method="post" id="addVideo" enctype="multipart/form-data" target="post" onsubmit="return startAjax(this);"&gt;
                  &lt;iframe id="post" name="post" src="#" style="width:0;height:0;border:0px solid #fff;"&gt;&lt;/iframe&gt;
                  &lt;table width="860" border="0" cellspacing="0" cellpadding="0"&gt;
                      &lt;tr&gt;
                          &lt;td width="435"&gt;POST YOUR AD FREE&lt;br /&gt;
                              &lt;em&gt;Paste embed code from YouTube&lt;/em&gt;&lt;/td&gt;
                          &lt;td width="322"&gt;&lt;input type="text" id="videoLink" name="videoLink" class="input_textbox" /&gt;
                          &lt;/td&gt;
                          &lt;td width="95"&gt;&lt;input type="submit" name="set_video_link" id="set_video_link" value="" class="submt_post" /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;&lt;div id="process"&gt; Connecting please wait &lt;img src="images/loading.gif" /&gt;&lt;br/&gt;
                              &lt;/div&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
              &lt;/form&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>And all content comes from old domain i removed index file and it stoped working, therefore it is cleared that scripts run from old domain.</p>