Re: [PHP] php generated javascript

2006-09-07 Thread Shu Hung (Koala)
On 8/31/06, Curt Zirzow [EMAIL PROTECTED] wrote: On 8/30/06, Shu Hung (Koala) [EMAIL PROTECTED] wrote: On 8/31/06, Peter Lauri [EMAIL PROTECTED] wrote: Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look at the

Re: [PHP] php generated javascript

2006-08-31 Thread Curt Zirzow
On 8/30/06, Shu Hung (Koala) [EMAIL PROTECTED] wrote: On 8/31/06, Peter Lauri [EMAIL PROTECTED] wrote: Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look at the source code of the page that has been generated in the browser,

RE: [PHP] php generated javascript

2006-08-30 Thread Peter Lauri
Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look at the source code of the page that has been generated in the browser, and if that one looks as it should, it is probably your javascript that is not doing what it should :) And if

Re: [PHP] php generated javascript

2006-08-30 Thread Shu Hung (Koala)
On 8/31/06, Peter Lauri [EMAIL PROTECTED] wrote: Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look at the source code of the page that has been generated in the browser, and if that one looks as it should, it is probably your

Re: [PHP] php generated javascript

2006-08-30 Thread J R
put this at the top of your script ob_start(); or before any output. On 8/31/06, Shu Hung (Koala) [EMAIL PROTECTED] wrote: On 8/31/06, Peter Lauri [EMAIL PROTECTED] wrote: Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look

Re: [PHP] PHP generated JavaScript

2006-02-21 Thread Richard Lynch
On Mon, February 20, 2006 1:59 am, Tim Burgan wrote: Is is possible to make an external Javascript with PHP. Am I doing this correcT? ?php header(Content-Type: text/javascript); $text = Hello World; echo alert('.$text.');; You may need to include the trailing newline on this

Re: [PHP] PHP generated JavaScript

2006-02-20 Thread Curt Zirzow
On Mon, Feb 20, 2006 at 06:29:12PM +1030, Tim Burgan wrote: Is is possible to make an external Javascript with PHP. Am I doing this correcT? ?php header(Content-Type: text/javascript); $text = Hello World; echo alert('.$text.');; ? This looks perfectly fine. There are a few