浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

This took me quite some time to debug. Once again it made me realize why I hate hate hate Internet Explorer.

If you have a webpage on a HTTPS server with the following iframe code where you leave the src out:
<iframe id="if"></iframe>
and you view the page in Internet Explorer you'll get the following very descriptive warning.
This page contains both secure and nonsecure items
Clicking on the More Info button doesn't give you which items it's referring to, but just a help file.

Mozilla Firefox correctly doesn't produce this error.

Leaving the src attribute out of the iframe is common, when you want to fill the src attribute programmatically.

The solution you ask? Create a blank.html page and then write:
<iframe id="if" src="blank.html"></iframe>
The blank.html only contains <html></html>


posted on 2007-07-18 14:03  浙林龙哥  阅读(870)  评论(0编辑  收藏  举报