views:

99

answers:

3

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 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.

+2  A: 

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/...
Chris Pebble
… and you would have to load the content of the iframe over HTTPS too.
David Dorward
+1  A: 

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/...">
Neurostep
interesting... i'll have to try doing url's like that, I never knew about that
WalterJ89
I tried this but it seemed to grind everything to a halt :(
RyanP13
+1  A: 

Hi,

I found a cure for this courtesy of the creator:

http://groups.google.com/group/colorbox/browse_thread/thread/2d307504b4782d68#

RyanP13