Re: [PHP-DB] and pop-up windows From: Jayme Jeffman Filho (jjeffmanweb <email protected>)
Date: 11/07/00

I think this way you can't control the new window size, position, etc . The
best way, in my opinion, is let JavaScript do the client work and only call
php scripts to access data on the server. The "opener" property of the new
window allow access to "parent" window properties and JavaScript variables.
The return value of JavaScript "window.open" method is a handle to the new
window object which allow access its properties and JavaScript variables
too.

HTH.

Jayme.

http://www.conex.com.br/jjeffman

-----Mensagem Original-----
De: Wico de Leeuw <wico <email protected>>
Para: Stacy Hunter <stacy <email protected>>; <php-db <email protected>>
Enviada em: terça-feira, 7 de novembro de 2000 15:06
Assunto: Re: [PHP-DB] and pop-up windows

> At 11:47 7-11-00 -0500, Stacy Hunter wrote:
> >This is frustrating and probably the only time I have concluded that it
> >just can not be done...
>
> <FORM ACTION=somepage.html METHOD=post TARGET=_new>
> <INPUT TYPE=submit name=a VALUE=a>
> <INPUT TYPE=submit name=a VALUE=b>
> </FORM>
>
> somepage.html:
>
> <?
> if ($a == "a") {
> // do stuff
> } elseif ($a == "b") {
> // do stuff
> }
> ?>
>
> P.S. notice the target in the form :)
>
> Greetz,
>
> Wico
> >I need to be able to both open a new window (I guess using javascript)
and
> >to be able to discern which button has been pushed so that the associated
> >number gets inserted into a record without leaving the current page.
> >
> >PHP won't take the javascript variable without posting but I need
> >javascript to open the new window. Nor can I just use javascript to
insert
> >into the table.
> >
> >Can anyone see anything I am overlooking?
> >
> >TIA
> >
> >- Stacy
> >
> >
> >--
> >PHP Database Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> >For additional commands, e-mail: php-db-help <email protected>
> >To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>