IE6 https security message appearing after closing jQuery colorbox overlay
I am working on a secure site, https.
I am using the colorbox jquery plugin to iframe another page from the same site over the current content.
In开发者_Go百科 IE6 when i close the colorbox overlay i get the following message:
"This page contains both secure and nonsecure items.
Do you want to display the nonsecure items?"
Any ideas why this is happening? Can it be prevented?
Assume i would have to make the whole site http rather than https but this is not possible as we have online payments.
To avoid that message you need to serve all of your content (including jQuery libraries) using https. So:
<script src="http://example.com/js/...
Would need to change to:
<script src="https://example.com/js/...
I found a cure for this courtesy of the creator:
http://groups.google.com/group/colorbox/browse_thread/thread/2d307504b4782d68#
You should check whether all elements of the page loaded on secure protocol. If the site you use and http and https, then I would suggest to specify the url as follows:
<script type="text/javascript" src="//example.com/js/...">
精彩评论