[PHP] Executing JavaScript

2004-03-04 Thread Todd Cary
How can I execute window.close() with php?

Todd

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


Re: [PHP] Executing JavaScript

2004-03-04 Thread Richard Davey
Hello Todd,

Thursday, March 4, 2004, 6:52:33 PM, you wrote:

TC How can I execute window.close() with php?

You can't, PHP is a server side language. You can echo out the above
JS using PHP, but you can't force it to happen.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



RE: [PHP] Executing JavaScript

2004-03-04 Thread Jeremy
Of *course* you can do that with php! When the user clicks a link, with
PHP respond like this:

...
body onLoad=javascript:window.close()
...

And voila! PHP closes the window!

-J

-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 9:58 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Executing JavaScript


Hello Todd,

Thursday, March 4, 2004, 6:52:33 PM, you wrote:

TC How can I execute window.close() with php?

You can't, PHP is a server side language. You can echo out the above
JS using PHP, but you can't force it to happen.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re[2]: [PHP] Executing JavaScript

2004-03-04 Thread Richard Davey
Hello Jeremy,

Thursday, March 4, 2004, 4:20:32 PM, you wrote:

J Of *course* you can do that with php! When the user clicks a link, with
J PHP respond like this:

J ...
J body onLoad=javascript:window.close()
J ...

J And voila! PHP closes the window!

No, PHP itself hasn't closed anything. JavaScript has.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re: [PHP] Executing JavaScript

2004-03-04 Thread Raditha Dissanayake
Siva Kumar,
Where is your famous monthly post :-)
Todd Cary wrote:

How can I execute window.close() with php?

Todd



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Executing JavaScript

2004-03-04 Thread Todd Cary
Yes!  Makes absolute sense.  I put it on an Input Type=Button onClick.

Thanks for your patience...

Todd

Richard Davey wrote:
Hello Todd,

Thursday, March 4, 2004, 6:52:33 PM, you wrote:

TC How can I execute window.close() with php?

You can't, PHP is a server side language. You can echo out the above
JS using PHP, but you can't force it to happen.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php