简体   繁体   中英

fancybox, login and reset password forms

If i have a login form with a link to new new password form

<form method="POST" action="" name="loginForm" id="loginForm">
 ''
   <input type="submit" id="loginSubmit" name="loginSubmit" value="ok">
</form>
<a href="recoverpw.php"  id="usrFormFancyBox" 
    onClick="$.fancybox(this); return false;">New password</a>

And recoverpw.php looks like

<form method="POST" action="" name="newPw" id="newPw">
 ''
   <input type="submit" id="resetPw" name="resetPw" value="ok">
</form>

that i also to show in the same fancybox. How to close the fancybox while pressing both login submit or a resset password submit? How to put a correct onClick code? onClick="$.fancybox(this); return false;" or onClick="parent.$.fancybox.close();parent.$.fancybox(this); return false;" or something??

Thank you

您将使用setTimeoutcallbackOnClose查看该问题 ,您的问题将得到完整的答案。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM