Click to See Complete Forum and Search --> : Communicating between windows


Brendan Nolan
05-06-2003, 05:28 AM
I have a page which has a dropdown menu. when a choice is made of the "Main Category" Javascript opens a window with a PHP script in it, goes off to my database and finds out the sub categories for that main category.

The PHP will then write the appropriate javascript to change the second dropdown.


I know that you can make a frame talk to a frame that was created with javascript... as so ----

var new_window = window.open("stuff.html","window_name","width=200,height=50");

and I could make changes to it using something like...

new_window.status="I need help!!!";

But how can I change something in the document that the popup was created from?

I really hope that it is possible, as I don't want to have the original document download all of the sub categories for all of the main categories because there are far too many of them!

gil davis
05-06-2003, 06:04 AM
how can I change something in the document that the popup was created from?window.opener.status = "message from popup";