AJAX: Permission denied to access property in iframe

Posted by Muhammad Sajid on Stack Overflow See other posts from Stack Overflow or by Muhammad Sajid
Published on 2012-04-16T05:10:16Z Indexed on 2012/04/16 5:29 UTC
Read the original article Hit count: 228

Filed under:

Hi I created an php website which uses for AJAX post and was live at http://sprook.com.au/ but my client change it's domain to http://www.sprookit.net/ from his service provider Godaddy and now the firebug says:

Permission denied to access property 'stopAjax'

here stopAjax is my method name.

script is there:

<div class="post_area">
            <form action="post.php" method="post" id="addVideo" enctype="multipart/form-data" target="post" onsubmit="return startAjax(this);">
                <iframe id="post" name="post" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
                <table width="860" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="435">POST YOUR AD FREE<br />
                            <em>Paste embed code from YouTube</em></td>
                        <td width="322"><input type="text" id="videoLink" name="videoLink" class="input_textbox" />
                        </td>
                        <td width="95"><input type="submit" name="set_video_link" id="set_video_link" value="" class="submt_post" />
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td><div id="process"> Connecting please wait <img src="images/loading.gif" /><br/>
                            </div></td>
                    </tr>
                </table>
            </form>
        </div>

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.

© Stack Overflow or respective owner

Related posts about AJAX