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,

[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: script type=text/javascript language='JavaScript' src='http://foo.com/testing/js.php'/script However, Sometimes the javascript

RE: [PHP] php generated javascript

2006-08-30 Thread Peter Lauri
:) And if 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 script

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

[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 header(Content-Type: text/javascript); $text = Hello World; echo alert('.$text.');; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php