0
您好我創建了一個PHP的網站,該網站使用了AJAX後,是住在http://sprook.com.au/但我的客戶從他的服務提供商GoDaddy的改變它的域名http://www.sprookit.net/現在的螢火蟲說:AJAX:權限被拒絕在IFRAME訪問屬性
權限被拒絕訪問屬性 'stopAjax'
這裏stopAjax是我的方法的名字。
腳本有:
<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> </td>
<td><div id="process"> Connecting please wait <img src="images/loading.gif" /><br/>
</div></td>
</tr>
</table>
</form>
</div>
而且所有內容來自舊域我刪除索引文件,並將其採空工作,因此被清除的腳本從舊域中運行。
是的所有內容來自舊域我刪除了索引文件,它停止工作,因此清除腳本從舊域運行 – 2012-04-16 05:26:02
因此,這就是問題 - HTML來自http://www.sprookit.net /但AJAX調用正在從http://sprook.com.au/進行。 – BluesRockAddict 2012-04-16 05:29:45
沒有AJAX調用和HTML位於.com.au,但如果我使用.net Firebug拋出錯誤,如果我使用.com.au它的罰款。 – 2012-04-16 05:46:07