Hi,
I've managed to open the login form in fancybox. When visitors login, the page opens in the i-frame itself. When they hit the close button of the fancy box, the parent page refreshes. Almost there but I would like to close the popup and refresh the parent page at one go with a proper function when a visitor hits the submit button.
This is my code so far:
<script type="text/javascript">
$(document).ready(function() {
$("#popup").fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'type' : 'iframe',
'onClosed': function() { parent.location.reload(true); }
});
});
</script>
Any idea's
Much appriciated!
Cheer,
Steven