Click here to Skip to main content
11,581,510 members (64,999 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET jQuery
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 29-Jan-13 17:24pm
PBGuy1.8K

1 solution

Rate this: bad
good
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):
jQuery.support.cors = true;
OrElse if you want to make it more simpler, use $.getJSON with callback function which allows cross domain calls.
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 340
1 Sergey Alexandrovich Kryukov 160
2 Frankie-C 105
3 RyanDev 84
4 virusstorm 84
0 OriginalGriff 1,273
1 Sergey Alexandrovich Kryukov 900
2 Abhinav S 617
3 F-ES Sitecore 500
4 Suvendu Shekhar Giri 433


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2015
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