Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

iFrame not loading in css tab (in FF browser only)

  • 3 回覆
  • 3 有這個問題
  • 1 次檢視
  • 最近回覆由 legarsblond

more options

On a website page, I have 3 css tabs (with < ul > and < li > tags). In the first 2 tabs, I have an iFrame. In the first tab (active on page load), the iFrame loads fine. In the second tabs it doesn't.

It's only on Firefox. In IE or Chrome, it works fine.

I noticed that when I click on the second tab really quickly on page load, the iFrame loads.

I tried everything! Please help

http://www.mrcdecoaticook.qc.ca/municipalites/cartes.php

The iFrame are at line 187 of the source code.

On a website page, I have 3 css tabs (with < ul > and < li > tags). In the first 2 tabs, I have an iFrame. In the first tab (active on page load), the iFrame loads fine. In the second tabs it doesn't. It's only on Firefox. In IE or Chrome, it works fine. I noticed that when I click on the second tab really quickly on page load, the iFrame loads. I tried everything! Please help http://www.mrcdecoaticook.qc.ca/municipalites/cartes.php The iFrame are at line 187 of the source code.

由 legarsblond 於 修改

被選擇的解決方法

I figured it out using "onlick" on my tab to reload iframe when selected:

< li onclick="var ifr=document.getElementsByName('f2')[0]; ifr.src=ifr.src;">GALERIE DE CARTES< /li>

從原來的回覆中察看解決方案 👍 0

所有回覆 (3)

more options

I see this as well. Maybe it is caused by this iframe being hidden, but I don't know why this frame isn't loaded when you switch to that frame.

Is there content loaded via XHR?

Note that you can use "This Frame > Reload Frame" in the right-click context menu to get the content.

more options

cor-el said

I see this as well. Maybe it is caused by this iframe being hidden, but I don't know why this frame isn't loaded when you switch to that frame. Is there content loaded via XHR? Note that you can use "This Frame > Reload Frame" in the right-click context menu to get the content.

No it's not XHR. I think it is really because the iFrame is hidden, because when I click within a second or two on the second tab when the page loads, the iFrame load, and it's the iFrame in the first tab that doesn't load.

Is there a way to force the loading of a hidden iFrame?

more options

選擇的解決方法

I figured it out using "onlick" on my tab to reload iframe when selected:

< li onclick="var ifr=document.getElementsByName('f2')[0]; ifr.src=ifr.src;">GALERIE DE CARTES< /li>

由 legarsblond 於 修改