Re: [PHP] Re: Call JS Function with PHP Header()?
* and then Torsten Roehr declared header(Location: javascript:this.print()); Which of course does not work. Anyone know how I might do it? try this: echo script language=\JavaScript\ !-- this.print(); //-- /script; Thanks Torsten, I have managed to do that, but it's in the body like this: !-- script type=text/javascript this.print(); /script //-- Right in the middle of the body. It doesnt work LoL! - Seems to me that it should do...? -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Call JS Function with PHP Header()?
* and then Nick Wilson declared !-- script type=text/javascript this.print(); /script //-- Right in the middle of the body. It doesnt work LoL! - Seems to me that it should do...? Ah... XHTML Strict - Gotta remove the comment tags ;-) Thanks mate.. -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Call JS Function with PHP Header()?
You should be able to use the comment tags, just put them inside the script tags: echo script language=\javascript\ type=\text/javascript\ !-- this.print() //-- /script; I don't believe you need a semi-colon after this.print within the javascript script. [Original Message] From: Nick Wilson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: 06/03/2004 11:02:57 AM Subject: Re: [PHP] Re: Call JS Function with PHP Header()? * and then Nick Wilson declared !-- script type=text/javascript this.print(); /script //-- Right in the middle of the body. It doesnt work LoL! - Seems to me that it should do...? Ah... XHTML Strict - Gotta remove the comment tags ;-) Thanks mate.. -- Nick W -- 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] Re: Call JS Function with PHP Header()?
* and then Dennis Seavers declared You should be able to use the comment tags, just put them inside the script tags: echo script language=\javascript\ type=\text/javascript\ !-- this.print() //-- /script; I don't believe you need a semi-colon after this.print within the javascript script. Cool, thanks Dennis that's great ;-) -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php