Re: codeigniter 'secure, non-secure content' pop up message in IE7
| From: | Jan G.B. | Date: | Thu, 09 Apr 2009 12:56:12 +0000 |
| Subject: | Re: codeigniter 'secure, non-secure content' pop up message in IE7 | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291285@lists.php.net to get a copy of this message | ||
2009/4/9 Yannick Mortier <mvmortier@googlemail.com>:
> 2009/4/9 9el <lenin@phpxperts.net>:
>> ---------- Forwarded message ----------
>> From: Sabrina Akter <lizzeelike@gmail.com>
>> Date: Thu, Apr 9, 2009 at 1:12 AM
>> Subject: codeigniter 'secure, non-secure content' pop up message in IE7
>> To: phpexperts@yahoogroups.com
>>
>>
>> Hello Experts,
>>
>> I badly need your help. My developed site's some pages are HTTPS, and
>> other parts are HTTP. When I try to access the HTTPS page in IE it
>> comes up with "secure & non-secure content " warning. I search on
>> google to find out the solution. but almost every site suggest to
>> change the IE setting. But, its not wish way to tell every visitor's
>> to change the IE setting. So, I want to stop this message with some
>> coding. while searching, I found some advice to make all image to
>> HTTPS, for https pages, I followed that, but still i am getting this
>> same pop up warning. Is there any other way to solve my problem? Any
>> one can help me on it? Please do reply.
>>
>> With Regards
>> --------------------
>> Sabrina Akter
>> Web App. Developer
>> 'IBACS' - www.ibacs.co.uk
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> Look at the generated source code and try to find any files that are
> included by absolute URL (search for http://) those have to be
> eliminated. Make sure everything uses relative paths or comes over
> SSL.
>
Yes. or absolute paths without protocoll and host. ;)
works:
src="/foo.bar"
src="./foo.bar"
src="https://otherserver/foo.bar"
And also be on the lookout for blank src= attributes like in a iframe
<iframe src="" id="foo">
A bug in IE will show the mentioned popup when you have such code.
Solution: src="javascript:void(0)"
Bye