Solved

close thickbox window on click

Posted on 2006-11-17
3
4,454 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

743 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

15 Experts available now in Live!

Get 1:1 Help Now