Click here to Skip to main content
12,952,575 members (41,107 online)
Rate this:
Please Sign up or sign in to 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..

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

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 29-Jan-13 17:24pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

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
OriginalGriff 6,289
CHill60 3,490
Maciej Los 3,103
Jochen Arndt 1,975
ppolymorphe 1,900

Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100