Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP-WIN] window.open and php...

3 views
Skip to first unread message

Sandeep Murphy

unread,
May 2, 2002, 11:51:18 AM5/2/02
to Mike Flynn, php-w...@lists.php.net
thnx guys..

works now..:)

-----Original Message-----
From: Mike Flynn [mailto:mi...@mikeflynn.net]
Sent: quinta-feira, 2 de Maio de 2002 16:46
To: Sandeep Murphy; php-w...@lists.php.net
Subject: RE: [PHP-WIN] window.open and php...


Ok.. try this.. your commas, quotation marks, plus marks, etc are all
messed up.
var winMy;
function ope(page,wid,hgt){
winMy = window.open(page,
'winMy','height='+hgt+',width='+wid+',channelmode=0,dependent=0,directories=
0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolba
r=0');
}

It's a javascript question, fyi. Not that I personally care. :)

-Mike

At 04:38 PM 5/2/2002 +0100, Sandeep Murphy wrote:

>hi,
>
>What you have suggeste is exactly what I am doing.. however the function
>ope() accepts only the URL and ignores the width and height... and sometime
>it accepts the URL and the first parameter alone... I hv checked and
>rechecked the code and cant find whats wrong with it....
>
>any more suggestions???
>
>Thnx again..
>
>Sands
>
> >function ope(page,wid,hgt){
> >
> >
> > //open (page, "page",
>
>"height="+hgt,"width="+wid,"channelmode=0,dependent=0,directories=0,fullscr
>e
> >en=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0",
> >"myWindow")
> >
> > open (page, "page",
>
>"height=30,width=50,channelmode=0,dependent=0,directories=0,fullscreen=0,lo
>c
> >ation=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0",
"myWindow")
> > }
> >
> > </script>
> >
> >The window does pop ups but ignores the widht and height sent.. whereas
if
>i
> >hardcode the values for the pop up is works...
> >
> >Isnt is possible to send values for the window parameters dynamically??
if
> >so what am i doing wrong??
> >
> >TIa,
> >
> >sands
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>Mike Flynn - Burlington, VT
>http://www.mikeflynn.net/ - mi...@mikeflynn.net
>home=>work=>home=>store=>home [repeat daily]
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


Mike Flynn - Burlington, VT
http://www.mikeflynn.net/ - mi...@mikeflynn.net
home=>work=>home=>store=>home [repeat daily]

Mike Flynn

unread,
May 2, 2002, 11:46:01 AM5/2/02
to Sandeep Murphy, php-w...@lists.php.net
Ok.. try this.. your commas, quotation marks, plus marks, etc are all
messed up.
var winMy;
function ope(page,wid,hgt){
winMy = window.open(page,
'winMy','height='+hgt+',width='+wid+',channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0');

Mike Flynn

unread,
May 2, 2002, 11:33:19 AM5/2/02
to Sandeep Murphy, php-w...@lists.php.net
Ummm are we talking JavaScript or PHP here? Opening windows is a function
of JavaScript, being that is occurs on the client side and not the server
side. If you call ope('stuff.php', 100, 200) somewhere in your page, then
your function will work fine. There are a number of ways to have PHP
provide the values of height and width to the JavaScript, either having PHP
hardcode it into your window open function if all calls to it are going to
have the same width and height on a page, or having PHP hardcode it into
the function CALLS, so each call to ope() uses a specific height and width
provided by PHP. It would take a while to explain this fully. But if you
understand the difference between PHP (server-side) and JavaScript
(client-side), then it should be pretty clear after some tries.

Good luck,

-Mike

At 04:21 PM 5/2/2002 +0100, Sandeep Murphy wrote:
>hi,
>

>I hv a problem related to the window popup and my php script..
>
>I need to send values for the widht and height dynamically thru my php like
>the fwg:

Sandeep Murphy

unread,
May 2, 2002, 11:38:12 AM5/2/02
to Mike Flynn, php-w...@lists.php.net

hi,

What you have suggeste is exactly what I am doing.. however the function
ope() accepts only the URL and ignores the width and height... and sometime
it accepts the URL and the first parameter alone... I hv checked and
rechecked the code and cant find whats wrong with it....

any more suggestions???

Thnx again..

Sands

-----Original Message-----
From: Mike Flynn [mailto:mi...@mikeflynn.net]
Sent: quinta-feira, 2 de Maio de 2002 16:33
To: Sandeep Murphy; php-w...@lists.php.net

0 new messages