Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to open a submit button which is in fancybox in the parent window?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37801
    antonio_89
    Participant

    Hi, I have a login form displaying in a fancybox window. It has a username and password fields and a login button. Upon successful login, I want the fancybox window to close and the user to be redirected to the user area in the parent window. At the moment it all works fine, however the user area page gets displayed in the fancybox window and like I mentioned above, I want it to be displayed in the parent window. Exactly like the login process on the csstricks website.

    Could anyone please help? your help would be much appreciated!

    #101829
    Senff
    Participant

    Is the form itself in an iFrame (not a DIV on the same page)? If that’s the case, try adding target="_parent" to the tag.

    #101858
    antonio_89
    Participant

    Yes, it is in the iFrame and this was exactly what I was looking for! Thank you very much, you have no idea how long I was looking for the solution to this problem! :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.