Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

iFrame reloading every time when we hide and show that iFrame

more options

I am showing an Silverlight component in an iFrame and has to show and hide that iFrame from a menu link. So everytime I hide and show the iFrame, my Silverlight component is reloading. This is not happening in any other browser except FireFox (both Mac and Windows). I also tried keeping the iFrame inside DIV and hiding and showing that DIV and still same problem.

I will be grateful if you can provide me a solution.

Thanks.

I am showing an Silverlight component in an iFrame and has to show and hide that iFrame from a menu link. So everytime I hide and show the iFrame, my Silverlight component is reloading. This is not happening in any other browser except FireFox (both Mac and Windows). I also tried keeping the iFrame inside DIV and hiding and showing that DIV and still same problem. I will be grateful if you can provide me a solution. Thanks.

被選擇的解決方法

If you use display:none then the frame is reloaded.
If you do not want that then use visibility:hidden or opacity:0 to hide the frame.

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

所有回覆 (4)

more options

選擇的解決方法

If you use display:none then the frame is reloaded.
If you do not want that then use visibility:hidden or opacity:0 to hide the frame.

more options

WOW You are Great. My Problem is solved :-)

I have one more problem, My lightbox pop-ups and drop-down menus are going behind Silverlight component. Is there any simple solution for this problem?

Thank You once again.

more options

You're welcome.

Not that I know of.
Does the Silverlight plugin have something similar like Flash with wmode=transparent?

Try to ask advice at the mozillaZine Web Development/Standards Evangelism forum. The helpers at that forum are more knowledgeable about web development issues. You need to register at the mozillaZine forum site in order to post at that forum. See http://forums.mozillazine.org/viewforum.php?f=25 You need to post a link to the website or post relevant parts of the code to make it possible to inspect the code.

more options

Thank You Cor-el. I'm not sure about wmode in Silverlight. I'm just using the Silverlight page URL in iFrame.

I will ask for advice at mozillaZine. Thank You once again.