跨界域页面未显示在“精美”框中 [英] cross domain page is not shown in Fancy box

查看:43
本文介绍了跨界域页面未显示在“精美”框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站使用单点登录[SSO]功能,允许单个登录多个网站,当用户登录时,点击任何网站链接,网站打开一个精美的框,但是,点击一个网站,而不是花哨框,网站在父窗口本身打开,



如何解决这个问题,...?我是否需要调整Internet Explorer设置?我正在使用fancybox 2.0。 6使用jquery-1.7.1-min.js,使用registerstartup脚本来触发超链接点击事件,其中'url [dynamic]为fancybox函数中的href属性分配..



UI:

< a id =aTriggerrunat =serverstyle =display:noneclientidmode =Static>



.cs

strScript = @< script type =''text / javascript''> $(document).ready(function(){$(' '#aTrigger'')。fancybox({''type'':''iframe'',''width'':1800,''height'':750,''href'':''+ strURL + '。})触发( '' 点击 '');}) ;< / script>;



这里strURL是用户请求的网站的网址,它包含共享密钥。



任何建议表示赞赏,,,

解决方案

(文件).ready(function(){


< blockquote>(''#aTrigger'')。fancybox({''type'':''iframe'',''width'':1800,''height'':750,''href'':'' + strURL +''})。触发器(''click'');});< / script>;



这里strURL是网址用户请求的网站,它包含共享密钥。



任何建议表示赞赏,,,


制作跨域电话,您首先必须启用跨域调用。

为此,请在

之前添加代码

my site uses single sign on[SSO] feature to allow single sign in for multiple sites, when user signs in, on clicking any site link,site opens in a fancy box,but,on clicking a site, instead of fancy box, site is opening in parent window itself,

how to solve this,...?Do I need to tweak internet explorer settings?I am using fancybox 2.0.6 with jquery-1.7.1-min.js ,using registerstartup script to triiger hyperlink click event, where ''m assigning url[dynamic] to the href attribute in fancybox function..

UI:
<a id="aTrigger" runat="server" style="display: none" clientidmode="Static">

.cs
strScript = @"<script type=''text/javascript''>$(document).ready(function() {$(''#aTrigger'').fancybox({''type'': ''iframe'',''width'':1800,''height'': 750,''href'':''" + strURL + "''}).trigger(''click'');});</script>";

here strURL is the url of the site requested by user, it contains shared key.

any suggestion is appreciated,,,

解决方案

(document).ready(function() {


(''#aTrigger'').fancybox({''type'': ''iframe'',''width'':1800,''height'': 750,''href'':''" + strURL + "''}).trigger(''click'');});</script>";

here strURL is the url of the site requested by user, it contains shared key.

any suggestion is appreciated,,,


To make cross domain calls, you first have to enable cross domain calls.
To do so, add code before your


这篇关于跨界域页面未显示在“精美”框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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