简体   繁体   中英

html page with and iframe inside loaded via ajax is refreshing whole site

I have a html page called store.html with and iframe loading javascript inside (a Nimbit store to be precise), when i call the store.html from the menu via ajax on my index.html the store page is loading normally but when the iframe containing javascript finish loading is refreshing the whole site. How could I prevent That? Thanks guys in advance.Easy on my please I am learning...

How I call it Via ajax from index.html menu:

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

my frame in 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>

The question is not clear enough mate. Normally, in ajax load if page gets refreshed.. 1st thing you need to make sure, you "return false" on every call.

我们需要查看生成的iFrame页面的来源-如果它包含javascript,这听起来像是在做某件事。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM