Re: [PHP] Opening new browser window

2003-09-19 Thread Brent Baisley
Why use a javascript to create a new window? Any link can be directed 
to a new window with a simple target=.



"Industry" would be the reference name of the window. For instance, if 
you wanted to refer to it from another window.

PHP is server side, all it does is serve up a resulting page to a 
client. The client has no idea that PHP is being used, nor does it 
care. To answer your question you can't do it in PHP, but you can do it 
using HTTP, HTML and/or Javascript.

On Friday, September 19, 2003, at 02:13 PM, Rich Fox wrote:

And if you are not in a form? My current code is:


   
 
where popup is my javascript function. But as I said below, the popup
doesn't work as expected and I do not want to use javascript. I can 
also not
be in a form. Suggestions?

Rich

--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Opening new browser window

2003-09-19 Thread R'twick Niceorgaw
Rich Fox said the following on 9/19/2003 12:33 PM>>
I would like to open a new browser window from within my php script
(edit.php), a window in which another php page is run (search.php).
search.php should be able to receive $_POST vars etc. from edit.php. I am
not sure that the javascript solution to popup a window is correct, because
then the popup does not behave normally.
By normally, I mean that when I use javascript to popup a new window
(search.php), and in search.php I have a form

 
window is a javascript object and so you should be calling some 
javascript function to set the value here, something like



document.form.caller.value=window.opener.location.href;

  >
  >
 
 

clicking OK or Cancel does absolutely nothing. So, I would like to avoid
javascript and simply open a new browser window to run search.php. What is
the accepted way to do this in php?
btnOK and btnCancel are not instructed to do anything when clicked and 
so there's nothing wrong they are doing! what work these two buttons are 
supposed to do?
I assume
1. btnOK is to post the data to server?
in that case, you should have it as button=submit or
an onClick="javascript function()"?

2. btnCancel is to close the window and go back to the parent page?
in that case also, you should have a onClick function.
HTH
R'twick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Opening new browser window

2003-09-19 Thread Rich Fox
And if you are not in a form? My current code is:


   
 

where popup is my javascript function. But as I said below, the popup
doesn't work as expected and I do not want to use javascript. I can also not
be in a form. Suggestions?

Rich

"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message

> 
>
>
> Rich Fox wrote:
>
> > I would like to open a new browser window from within my php script
> > (edit.php), a window in which another php page is run (search.php).
> > search.php should be able to receive $_POST vars etc. from edit.php. I
am
> > not sure that the javascript solution to popup a window is correct,
because
> > then the popup does not behave normally.
> >
> > By normally, I mean that when I use javascript to popup a new window
> > (search.php), and in search.php I have a form
> >
> > 
> >  
> >   >
> >   >
> >  
> >  
> > 
> >
> > clicking OK or Cancel does absolutely nothing. So, I would like to avoid
> > javascript and simply open a new browser window to run search.php. What
is
> > the accepted way to do this in php?
> >
> > tia,
> >
> > Rich
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Opening new browser window

2003-09-19 Thread Marek Kilimajer


Rich Fox wrote:

I would like to open a new browser window from within my php script
(edit.php), a window in which another php page is run (search.php).
search.php should be able to receive $_POST vars etc. from edit.php. I am
not sure that the javascript solution to popup a window is correct, because
then the popup does not behave normally.
By normally, I mean that when I use javascript to popup a new window
(search.php), and in search.php I have a form

 
  >
  >
 
 

clicking OK or Cancel does absolutely nothing. So, I would like to avoid
javascript and simply open a new browser window to run search.php. What is
the accepted way to do this in php?
tia,

Rich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Opening new browser window

2003-09-19 Thread Rich Fox
I would like to open a new browser window from within my php script
(edit.php), a window in which another php page is run (search.php).
search.php should be able to receive $_POST vars etc. from edit.php. I am
not sure that the javascript solution to popup a window is correct, because
then the popup does not behave normally.

By normally, I mean that when I use javascript to popup a new window
(search.php), and in search.php I have a form


 
  >
  >
 
 


clicking OK or Cancel does absolutely nothing. So, I would like to avoid
javascript and simply open a new browser window to run search.php. What is
the accepted way to do this in php?

tia,

Rich

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Opening new browser window.

2002-03-13 Thread Erik Price


> Is there anyway that I can open a new browser window in php, like you 
> are
> able to do in JavaScript (window.open()). I have had a look around and 
> can't
> find any information on how this can be done.

PHP can't control browser objects like windows.  You have to use 
JavaScript for stuff like that, or you could use the frames properties 
of HTML like this:

Click Here

Essentially, you're having the new file open up in a new frame, but 
instead of the frame being defined in the current window, it's in a new 
window.  Not really JavaScript, but same effect.


Erik





Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Opening new browser window.

2002-03-13 Thread Caspar Kennerdale

embed the javascript within the php using echo or print

-Original Message-
From: Way, Paul [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 16:26
To: '[EMAIL PROTECTED]'
Subject: [PHP] Opening new browser window.


Is there anyway that I can open a new browser window in php, like you are
able to do in JavaScript (window.open()). I have had a look around and can't
find any information on how this can be done.


Many thanks.

PW..

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Opening new browser window.

2002-03-13 Thread Way, Paul

Is there anyway that I can open a new browser window in php, like you are
able to do in JavaScript (window.open()). I have had a look around and can't
find any information on how this can be done.


Many thanks.

PW..

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php