Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

iFrame reloading every time when we hide and show that iFrame

  • 4 trả lời
  • 2 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi 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.

Giải pháp được chọn

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.

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (4)

more options

Giải pháp được chọn

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.