views:

29

answers:

1

I am using Jquery Rich Text Editor (RTE) in a page accessed through HTTPS in IE6 browser. When the RTE loads I get a mixed-content warning saying:

'This page contains both secure and non secure items. Do you want to display the non secure item ?'

This is probably happening because jquery while creating the RTE creates IFRAMES which have no 'src' attribute defined. This is making IE 6 produce this mix-content warning message.

Can anyone let me know a work around so that this mix-content warning message is not produced?

Thanks

A: 

Try using the network tab of Firebug to check if there are library references using HTTP. Maybe it has harcoded image references.

If the "no src" is the problem I'd try to set it to a blank.html file using jQuery after the Rich Text Editor is loaded.

Eduardo Campañó
I agree with the surmise of @aneez: it's definitely the case that `<iframe>` elements without a "src" cause that warning in IE6. I don't think `<img>` tags ever cause the problem, but I could be wrong about that.
Pointy
@Eduardo I did check for any requests being made over HTTP and could fine none. While debugging I figured out that the mixed-content warning is thrown when I convert a textarea to RTE using JQuery.
aneez
try $('iframe').attr('src', 'blank.html') after initializing the RTE
Eduardo Campañó
@EduardoI edited the jquery.rte.js file. I added the code to add the 'src' attribute for the iframe with the value pointing to a blank file retrieved over HTTPS. There are other values like 'javascript:false', 'https:javascript:false', '//0' which one could use, but it didn't work for me.
aneez