Perl CGI redirect and Javascript question

[email protected] ("Hmmm...") Mon, 5 May 2003 16:09:09 -0700
Newsgroups perl.javascript
Message-ID <[email protected]>
I have a Perl CGI script (script1.pl) that kicks off another script
(script2.pl) using:

 $query = new CGI;
 print $query->redirect(-location=>"/mycgi/script2.pl");

script2.pl then accesses a database to gather some data, and generates an
HTML document for data entry.  The document contains some javascript.  From
this document the user can select a button that opens a window
(test3_window) using javascript.


window.open("/mycgi/script3.pl",'test3_window','scrollbars,menubar,resizable
,toolbar');

script3.pl queries a database, creates an HTML document, displays some data,
and allows the user to make some selections.  From this document the user
can select a button that updates a text field in the document that was
opened by script2.pl.

 test2_window.the_text_field.value = "some value"

The problem I am having is that in script1.pl, I do not know how to
associate the name "test2_window" with the window when I open it using CGI:

 $query = new CGI;
 print $query->redirect(-location=>"/mycgi/script2.pl");

How do I name a window when using a CGI redirect?  Thanks.