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

Re: [PHP] php generated javascript

2006-08-30 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 th

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

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 ja

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 t

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? > > > header("Content-Type: text/javascript"); > > $text = "Hello World"; > > echo "alert('".$text."');"; You may need to include the trailing newline on

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? > > > header("Content-Type: text/javascript"); > > $text = "Hello World"; > > echo "alert('".$text."');"; > > ?> This looks perfectly fine. The