Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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,,,
Posted

1 solution

To make cross domain calls, you first have to enable cross domain calls.
To do so, add code before your $(document):
JavaScript
jQuery.support.cors = true;

OrElse if you want to make it more simpler, use $.getJSON with callback function which allows cross domain calls.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900