Re: [PHP] how to popup a new browser window from php
Martin Towell wrote: use vbscript :P otherwise no - php = server - [java|vb]script = client :o) of course there IS way how to do it from php .. put into your code something like this special secret code stolen from M$ H1 FONT color=red #x50;#x52;#x45;#x53;#x53;#x20;#x43;#x54;#x52;#x4c;#x2b;#x4e;#x20; /FONT U#x4e;#x20;#x4f;#x20;#x57;#x20;!#x20;!/U /H1 I don't how to put desired content into this new window ... but question wasn't about that :o) HTH, :o)\ M. -Original Message- From: Wo Chang [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 9:15 AM To: [EMAIL PROTECTED] Subject: [PHP] how to popup a new browser window from php Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? Any helps would be greatly appreciated. --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to popup a new browser window from php
On Friday, April 19, 2002, at 12:48 AM, Jason Wong wrote: On Friday 19 April 2002 07:14, Wo Chang wrote: Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? No. What about target=_blank ? I didn't think this was JavaScript, but achieves the same effect. Or is it JavaScript? 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] how to popup a new browser window from php
add this to the head section; script language=JavaScript function popupcontent(urll) { window.open(urll,'popup','toolbar=no,location=no,directories=no,status=n o,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=400,height =250'); } //-- /SCRIPT then use the following to open a window however ya want it to appear; a href=\javascript:popupcontent('announcements.php?action=viewthisone=$i d')\b$title/b/a works nicely :) -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 19 April 2002 1:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] how to popup a new browser window from php On Friday, April 19, 2002, at 12:48 AM, Jason Wong wrote: On Friday 19 April 2002 07:14, Wo Chang wrote: Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? No. What about target=_blank ? I didn't think this was JavaScript, but achieves the same effect. Or is it JavaScript? 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to popup a new browser window from php
On Friday 19 April 2002 20:48, Brian McGarvie wrote: add this to the head section; script language=JavaScript function popupcontent(urll) { window.open(urll,'popup','toolbar=no,location=no,directories=no,status=n o,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=400,height =250'); } //-- /SCRIPT then use the following to open a window however ya want it to appear; a href=\javascript:popupcontent('announcements.php?action=viewthisone=$i d')\b$title/b/a This looks suspiciously like javascript. works nicely :) I'm sure it does. Now do it again *without* javascript :) Is there any easy way to popup a new browser from PHP without using any Javascript? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* The mome rath isn't born that could outgrabe me. -- Nicol Williamson */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] how to popup a new browser window from php
No. You want a client side browser popup. PHP runs on the server. PHP does not run in a browser. Javascript runs on the browser. You need to use Javascript. Matt Friedman Web Applications Developer -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Friday April 19, 2002 9:14 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] how to popup a new browser window from php On Friday 19 April 2002 20:48, Brian McGarvie wrote: add this to the head section; script language=JavaScript function popupcontent(urll) { window.open(urll,'popup','toolbar=no,location=no,directories=no,status=n o,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=400,height =250'); } //-- /SCRIPT then use the following to open a window however ya want it to appear; a href=\javascript:popupcontent('announcements.php?action=viewthisone=$i d')\b$title/b/a This looks suspiciously like javascript. works nicely :) I'm sure it does. Now do it again *without* javascript :) Is there any easy way to popup a new browser from PHP without using any Javascript? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* The mome rath isn't born that could outgrabe me. -- Nicol Williamson */ -- 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: [PHP] how to popup a new browser window from php
Sure, it opens another window, but it doesn't achieve the same affect as a javascript alert (ok|cancel for starters), nor does it provide any control over the size/specs of the resultant window. Justin French Creative Director http://Indent.com.au on 19/04/02 10:39 PM, Erik Price ([EMAIL PROTECTED]) wrote: On Friday, April 19, 2002, at 12:48 AM, Jason Wong wrote: On Friday 19 April 2002 07:14, Wo Chang wrote: Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? No. What about target=_blank ? I didn't think this was JavaScript, but achieves the same effect. Or is it JavaScript? 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] how to popup a new browser window from php
On Friday, April 19, 2002, at 12:42 PM, Justin French wrote: Sure, it opens another window, but it doesn't achieve the same affect as a javascript alert (ok|cancel for starters), nor does it provide any control over the size/specs of the resultant window. Yeah, but nobody said anything about JavaScript alert or controlling the size/specs -- I was responding to the first email that Wo Chang sent, where Wo asked about a new browser (which I assumed meant new browser window, not javascript alert box). Erik on 19/04/02 10:39 PM, Erik Price ([EMAIL PROTECTED]) wrote: On Friday, April 19, 2002, at 12:48 AM, Jason Wong wrote: On Friday 19 April 2002 07:14, Wo Chang wrote: Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? No. What about target=_blank ? I didn't think this was JavaScript, but achieves the same effect. Or is it JavaScript? 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] how to popup a new browser window from php
use vbscript :P otherwise no - php = server - [java|vb]script = client -Original Message- From: Wo Chang [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 9:15 AM To: [EMAIL PROTECTED] Subject: [PHP] how to popup a new browser window from php Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? Any helps would be greatly appreciated. --Wo -- 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: [PHP] how to popup a new browser window from php
On Friday 19 April 2002 07:14, Wo Chang wrote: Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? No. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Your step will soil many countries. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php