2014-01-16 53 views
0

我有一個名爲store.html的HTML頁面和iframe加載JavaScript裏面(精確的Nimbit商店),當我從菜單調用store.html通過ajax在我的index.html商店頁面正常加載,但是當包含JavaScript完成加載的iframe刷新整個網站。 我怎麼能阻止呢? 感謝球員在advance.Easy我請我學習......html頁面和iframe裏面通過ajax加載是整個網站更新

我怎麼稱呼它通過Ajax從index.html的菜單:

<li> 
    <a href="store.html" class="page-by-ajax" data-ajax-options='{"target" :"#custom-page"}'>STORE</a> 
</li> 

我的框架store.html

<iframe src="http://www.nimbitmusic.com/theit_boy.1" 
      marginwidth="0" marginheight="0" name="ventana_iframe" scrolling="no" border="0" refresh="0" 
      frameborder="0" width="800" height="600"> 
</iframe> 
+0

也許nimbitmusic.com防止把網站中的在其他網站的iframe中,放置另一個網址,如google.com來檢查它。 – ZiTAL

回答

0

問題是不夠清楚的隊友。通常情況下,如果頁面被刷新,則在Ajax負載中。首先,您需要確保每次調用時都「返回false」。

0

我們就需要看最終的iFrame網頁的源 - 如果有JavaScript的,它聽起來像有什麼可能會做一個parent.reload

相關問題