Solved

close thickbox window on click

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google Sheets script efficiency 2 25
How to make a moving character 3 58
How can i  prevent default  Submision? 6 28
how can i get the string decoded ? 2 14
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

803 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