关于magento的fancybox混合内容问题 [英] fancybox mixed content problem on magento

查看:85
本文介绍了关于magento的fancybox混合内容问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在顶部使用fancybox登录/注册链接。该网站完全是http,当然客户希望启用ssl并启用该https。所以这里的fancybox最终出现了问题。

I am using fancybox for signin/Register links on the top. The site was fully http and certainly client wants to enable ssl and by that https enabled. So here the fancybox ended up in problem.

这就是标题链接的phtml代码。

This is what header link phtml code.

<li id="header-main-info-left">
                                                Hi Guest, <a class="lightbox-start" href="<?php echo Mage::getUrl('customer/account/ajaxlogin');?>">Sign in</a>
                                                or <a class="lightbox-start"  href="<?php echo Mage::getUrl('',array('_secure'=>false));?>customer/account/create/">Register</a>                    
                                            </li>       

当我点击时没有响应,经过长时间调试我发现/猜测它是混合内容问题。因为我在不安全页面加载安全页面内容。

And when i click there is no response, after long debugging i found/guess its a mixed content problem. Since am loading a secure page content in unsecure page.

如何使用magento中的fancybox在http页面上加载https内容。

How can i load https content on http page using fancybox in magento.

请帮我解决这个问题。

Please help me out from this.

提前致谢。

推荐答案

在fancybox上使用iframe类型我在fancybox中通过http加载了https页面。

By using iframe type on fancybox i have loaded the https page over http in fancybox.

 jquery("a.lightbox-popup-start,a.lightbox-start").fancybox({
            'transitionIn'      :   'elastic',
            'transitionOut'     :   'elastic',
            'speedIn'       :   800, 
            'speedOut'      :   400, 
            'width'         :   740, 
            'height'        :   430, 
            'type'          :       'iframe',
            'overlayShow'       :   true
        }); 

但是你们再次猜测IE8会显示内容被拒绝,因为它会在iframe上加载安全内容。

But as you all guess again IE8 shows the content is denied because it loads secure content on iframe.

此外,我尝试使用这两个选项来关闭fancybox。但它不起作用。 Anybosy猜测为什么它不起作用。

Also i tried to use these two options to close the fancybox. But its not working. Anybosy guess why its not working.

top.w49.fancybox.close();
parent.w49.fancybox.close();

提前致谢,

这篇关于关于magento的fancybox混合内容问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆