Connecting Tech Pros Worldwide Help | Site Map

Child and popup window problem!

Newbie
 
Join Date: Sep 2009
Posts: 4
#1: Sep 2 '09
Hey buddy,

I have three pages 1)index.php 2)login.php 3)client.php.

When I click on "login" on index.php page, it opens a popup.

When I submit that login page at that time I want to redirect to client.php.

The problem arise here, when the submit is successful in login.php (popup window), my client.php page appears inside popup window.

There may be simple solution but I am not able to find it.

If you have solution then please draw my attention towards.
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: Sep 2 '09

re: Child and popup window problem!


I see three ways to handle that:
- let login.php submit the data and tell index.php via window.opener (I think, but along that line) to load the client.php
- let login.php pass the data to index.php and submit from there
- use login.php as a separate page (drop the pop-up)
Reply

Tags
ajax, child, javascript, parent, popup