WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 R24 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • jQuery »
  • Login form in Fancybox
  • Print
Pages: [1]   Go Down

Author Topic: Login form in Fancybox  (Read 32909 times)

Steven

  • Guest
Login form in Fancybox
« on: February 07, 2011, 05:08:59 PM »
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: [Select]
<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
« Last Edit: February 07, 2011, 05:13:41 PM by Steven »
Logged

JC

  • Guest
Re: Login form in Fancybox
« Reply #1 on: March 19, 2011, 11:25:17 PM »
Hi Steven,

Did you figure out how to solve this?

/JC
Logged

Steven

  • Guest
Re: Login form in Fancybox
« Reply #2 on: March 21, 2011, 10:09:48 AM »
Hi JC,

I'm afraid not...
Logged

Offline BlackBird

  • Posts: 2573
Re: Login form in Fancybox
« Reply #3 on: March 21, 2011, 11:02:58 AM »
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.
Logged
http://wbaddons.webbird.de Don't miss this

deekodesk

  • Guest
Re: Login form in Fancybox
« Reply #4 on: June 27, 2011, 01:39:31 PM »
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....
Logged

herojohan

  • Guest
Re: Login form in Fancybox
« Reply #5 on: November 25, 2011, 11:18:16 PM »
Try to use ColorBox instead of Fancybox.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • jQuery »
  • Login form in Fancybox
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2