View Full Version : Pop up main page interaction

02-05-2009, 07:45 AM
Ok, I changed my plan of attack.

So I've made a button that opens a pop up window through java of a defined size, and it contains a login and password validation field. The part I do need help on is coding it so that when they enter a correct username and password, it closes the pop up window and reloads the main browser to their login cp.

button>opens pop up window>correct username+password combo put in>closes pop up>loads separate php file into the accounts cp

I know that I'll have to call on my database for said username and pass, and have it load w/e I tell it to load, but I don't know how to shut one thing while starting another on a separate page. (Unless there's an easier way to bring up a text area through a button w/o a pop up)

02-05-2009, 09:00 AM
Is this no longer Flash? Also Java is not the same as Javascript :)

Also, logging in would require your PHP, and this thread should be moved there.

02-05-2009, 09:23 AM
Not necessarily, I was able to call on the pop up with action script

on (release) {
getURL ("JavaScript:pop();");

But yes, you're right, I wasn't concerned about the technical jargon, but I guess I should have been.

Anyway, I found what I needed =p
Uses javascript to control both windows.