It's possible that adding target="_top" to your form tag in the popup might
solve your problem.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
----- Original Message -----
From: Matthew DeChant <[EMAIL PROTECTED]>
To: 'PHP list' <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 12:46 PM
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]
>
>


-- 
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