This page contains both secure and nonsecure items and iframes

本秂侑毒 提交于 2020-01-04 02:29:14

问题


IE 6.0 is giving me the message "This page contains both secure and nonsecure items" because I have iframes on my page (for the combo box bug). I have tried pointing to a few different things in the src but I can't seem to get rid of this message without putting in a blank html page, which I would like to avoid so there isn't a server call. Is there any solution? I suppose I could use the blank page and have the cache never expire on it possibly if there is no other choice and that should avoid the server trip?


回答1:


If I set the src to javascript:false; it works. I found this by examining what the yui library uses.




回答2:


There's probably a few ways to solve this using javascript. The javascript:false; method solves the "This page contains both secure and nonsecure items" problem but it also outputs the text "false" into the iframe which is undesirable if you want it to look like an empty iframe.

Another approach is to set the src attribute to javascript:''; which solves the issue stated above.



来源:https://stackoverflow.com/questions/541837/this-page-contains-both-secure-and-nonsecure-items-and-iframes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!