WebsiteBaker Support (2.8.x) > jQuery

Login form in Fancybox

(1/2) > >>

Steven:
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:

--- Code: ---<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>
--- End code ---
Any idea's

Much appriciated!

Cheer,

Steven

JC:
Hi Steven,

Did you figure out how to solve this?

/JC

Steven:
Hi JC,

I'm afraid not...

BlackBird:
Hm, I'm not sure if I understand the problem right. onClosed should always fire when the FB is closed, no matter which way it is closed.

deekodesk:
I don't think you can change the Use Login form in this manner...I remember i tried to do some modification in Fields and design but i end up with problems, bugs and errors....

Navigation

[0] Message Index

[#] Next page

Go to full version