Solved

close thickbox window on click

Posted on 2006-11-17
3
4,457 Views
Last Modified: 2008-01-09
I am using thickbox for my login screen with an iFrame.  The problem is that once the login is successful I am still within the thickbox iFrame.  I need it to process the login and then close the thickbox window while refreshing the page below... here is where it is, any ideas?

http://fab71ben.securesites.net/thefabonline.com/index.php
0
Comment
Question by:seamusseamus
3 Comments
 
LVL 3

Accepted Solution

by:
inubis earned 500 total points
ID: 17985795
Hi,

2 Options
1) In your form tag
<form method="post" id="form1" class="KT_tngformerror" action="http://fab71ben.securesites.net/thefabonline.com/login.php?height=220&width=310">
put target="top"
e.g.
<form method="post" id="form1" class="KT_tngformerror" target="_top" action="http://fab71ben.securesites.net/thefabonline.com/login.php?height=220&width=310">

2) On the login successful page that loads in your IFrame put this bit of code:

<script>
  parent.location = 'index.php';
</script>

Sam
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now