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
that is the case you can join the [EMAIL PROTECTED] list for that purpose. /Peter -Original Message- From: Shu Hung (Koala) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 10:41 AM To: PHP General Users Subject: [PHP] php generated javascript Hello, I'm writing a scri

[PHP] php generated javascript

2006-08-30 Thread Shu Hung (Koala)
Hello, I'm writing a script to generate a javascript. The javascript would generate a banner when it is sourced. This javascript is sourced by another html like this: However, Sometimes the javascript doesn't show anything at all. it seems that the php generated javascript cannot be loaded som

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

[PHP] PHP generated JavaScript

2006-02-19 Thread Tim Burgan
Is is possible to make an external Javascript with PHP. Am I doing this correcT? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php