We found a solution for those interested:
1. we add a fancybox js code for the fancybox to close when the person is logged in (that is we ad the code in the MembershipNavigation.ascx control):
<
script
type
=
"text/javascript"
>
parent.$.fancybox.close();
</
script
>
2. we add a code to reload parent page (the page that displays the Iframe in the fancybox declaration:
<!--/Load fancybox-->
<
script
type
=
"text/javascript"
>
$(document).ready(function() {
$(".various").fancybox({
maxWidth : 800,
maxHeight : 600,
fitToView : false,
autoSize : true,
closeClick : false,
openEffect : 'none',
closeEffect : 'none',
padding : 0,
afterClose : function() {
location.reload();
return;
}
});
});
</
script
>
it is the fragment:
afterClose : function() {
location.reload();
return;
}