Login page and Colorbox layer
-
Hi,
For one of my wordpress based website, I have to display the login page into a Colorbox layer (http://colorpowered.com/colorbox/).
And I’d like to close the window layer once the form has been submitted without error.
I know how to close the layer, but each time the form is submitted, (wrong or right), the window closes before the user is logged…
So, is there a way to determine (in php or javascript/jquery) if the user is logged before the javascript functions close the box?
This is the jquery that I use to close the layer:
<script type="text/javascript"> jQuery(document).ready(function($){ $('#loginform').submit(function(){ parent.$.fn.colorbox.close(); // close the colorbox layer parent.window.location.reload(); // refresh the page where the layer has been called }); }); </script>
Any help would be greatly appreciated!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Login page and Colorbox layer’ is closed to new replies.