I was surprised it didnt came up before. As Tedd said, try to ajax-up your javascript On 20/05/2008, tedd <tedd.sperling@xxxxxxxxx> wrote: > > At 11:41 AM -0300 5/20/08, Thiago Pojda wrote: > >> That way you can conditionally send some JS to client, but running actual >> JS >> in PHP is not possible. >> > > While running JS inside of PHP is at best confusing, it is possible to use > both php and javascript together. For example: > > You can use php to run javascript, right? > > And, you can use javascript and run php, right? > > So, all you need between the two is communication, right? > > Think of ajax. > > Here's an example: > > http://webbytedd.com/b/timed-php/ > > It just takes a little work. > > Cheers, > > tedd > -- > ------- > http://sperling.com http://ancientstones.com http://earthstones.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >