Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Learn More

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.

Vald lösning

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.

Läs svaret i sitt sammanhang 👍 0

Alla svar (4)

more options

Vald lösning

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.