I've been trying to develop a script for this and so far I was able to
find a working but nasty solution:
On the parent page, you should have the function parent location:
$(".varID").fancybox({
'type' : 'iframe',
'overlayShow' : false,
'hideOnOverlayClick' : false,
'hideOnContentClick': false,
'onClosed': function() { parent.location.reload(true); ; }
});
Then what you need is another close function that has a timer and that
will initialize the parent page.
php condition here something like:
if login successful {
<script type="text/javascript" src="
http://code.jquery.com/
jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="fancybox/
jquery.fancybox-1.3.1.js"></script>
</head>
<body onload="setTimeout ('parent.$.fancybox.close ()', 2000); ">
login successful
</body>
</html>
} else {
login here [username text field]
}
Sorry, I can't find the site where I found this solution. Thanks to
whoever was the actual brains of this script