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!

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

iFrame reloading every time when we hide and show that iFrame

  • 4 отговора
  • 2 имат този проблем
  • 1 изглед
  • Последен отговор от prabhakar.varma

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.