Mailing List Archive

open a new page (pop up)
i am planning to create an embperl page with
form fields (text inputs and buttons). how do i
make a button display a text file in a whole
web page (new or same) when clicked? any
suggestion? thanks.
RE: open a new page (pop up) [ In reply to ]
> i am planning to create an embperl page with
> form fields (text inputs and buttons). how do i
> make a button display a text file in a whole
> web page (new or same) when clicked? any
> suggestion? thanks.
>
Either put the button in a form on it's own where the action points to the
file you want to display, or use a image and make it a link to the file

Gerald
Re: RE: open a new page (pop up) [ In reply to ]
richter@ecos.de writes:
>Either put the button in a form on it's own where the action points to the
>file you want to display, or use a image and make it a link to the file
>
>Gerald

thanks. what if the text is stored in a variable and i want
to display it in a whole browser window(same/new).

in DBI
[- my ($foo) = $sth->fetchrow_array() -]

how do it display $foo? do i have to save it in a file?
RE: RE: open a new page (pop up) [ In reply to ]
>
> thanks. what if the text is stored in a variable and i want
> to display it in a whole browser window(same/new).
>
> in DBI
> [- my ($foo) = $sth->fetchrow_array() -]
>
> how do it display $foo? do i have to save it in a file?
>
>

You must put this in a page on it's own

[-
DBI->connect(.....) ;
#etc.
# don't use my for $foo!
$foo = $sth->fetchrow_array()
-]
[+ $foo +]


Gerald



-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
Re: RE: RE: open a new page (pop up) [ In reply to ]
thanks again. Is it possible to display text from a page/window into a new
page/window (pop up)?
.. like displaying
>[+ $foo +]
in another window/page.

richter@ecos.de writes:
>>
>> thanks. what if the text is stored in a variable and i want
>> to display it in a whole browser window(same/new).
>>
>> in DBI
>> [- my ($foo) = $sth->fetchrow_array() -]
>>
>> how do it display $foo? do i have to save it in a file?
>>
>>
>
>You must put this in a page on it's own
>
>[-
>DBI->connect(.....) ;
>#etc.
># don't use my for $foo!
>$foo = $sth->fetchrow_array()
>-]
>[+ $foo +]
>
>
>Gerald
>
RE: RE: RE: open a new page (pop up) [ In reply to ]
>
> thanks again. Is it possible to display text from a page/window into a new
> page/window (pop up)?
> .. like displaying
> >[+ $foo +]
> in another window/page.
>

It maybe possible with some javascript at the client side. That means you
have to dynamicly create these javascript, instead of pure html.

The http protocol only transfers one page per request and every request is a
single request, that means http is state less.

Gerald


-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------