I am not sure if I am following you exactly, but I beleive you should be
able to accomplish this using JavaScript.  From the new window you
can reference the original window using the opener object.  To
reload the original document from the new window, for example, you
would use:

opener.location.reload()

You can reference the entire DOM of the original window from the new window.
Just put opener where you would normally put window  =P

Let me know if this helps.

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com

----- Original Message -----
From: Matthew DeChant <[EMAIL PROTECTED]>
To: 'PHP list' <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 11:46 AM
Subject: [PHP] Open window2 (javascript), enter info in a form, then close
window2 and refresh window1. help.


> I've gotten this far:
>
> URL to open an advanced search window(window2) from window1:
>
> <a href=\"javascript:newWindow =
>
window.open('db_viewMD.php?dsn=$dsn&db=$db&lm=$lm&advsrch=true','advsrch','h
> eight=$vsize,width=310,scrollbars=$bln,resizeable=yes');
> newWindow.focus()\")>Advanced Search</a>
>
>
> Enter text in a form (snippet from form, close window if cancel is
clicked,
> redirect window1 to new url, close window):
>
> print "<form name=advsrch method=post action=db_viewMD.php>";
> print "<td class=sansbold>field1</td>\n";
> print "<td class=sansbold><input type=text name=field1></td></tr>\n";
> print "<input type=submit value=Submit
> onclick=window.opener.location='db_viewMD.php?';self.close()>\n";
> print "<input type=button value=Cancel onclick=self.close()>\n";
>
> Now the problem is that redirecting window1 isn't really helpful because
the
> form variables don't get loaded to window1 unless they are part of the URL
> (ie. dbview_md.php?field1=textentered1&field2=textentered2) but they can't
> be part of the URL because you don't know the text entered in the form
until
> it submits the form.)
>
> Is there a way to just refresh window1 after changing the PHP variable
> (HTTP_SERVER_VARS["argv"]??) that holds the arguments for window1?
>
> -m



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to