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 that is the case you can join the javascript@xxxxxxxxxx list for that purpose. /Peter -----Original Message----- From: Shu Hung (Koala) [mailto:koalay@xxxxxxxxx] Sent: Thursday, August 31, 2006 10:41 AM To: PHP General Users Subject: php generated javascript 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 doesn't show anything at all. it seems that the php generated javascript cannot be loaded sometimes. Maybe the generation takes too long. I'm not sure about that. Is there anyway to deal with it? Koala Yeung -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php