[PHP] calling JS function from php

2006-05-25 Thread suresh kumar
I am facing one problem in my project.I am trying to call a javascript function from php.but it not executing.this is my code. function clientTime() { var cNow = new Date(); var cHour = cNow.getHours(); var cMin = cNow.getMinutes(); var hour= cHour +

Re: [PHP] calling JS function from php

2006-05-25 Thread Ryan Creaser
suresh kumar wrote: I am facing one problem in my project.I am trying to call a javascript function from php.but it not executing.this is my code. function clientTime() { var cNow = new Date(); var cHour = cNow.getHours(); var cMin = cNow.getMinutes();

Re: [PHP] calling JS function from php

2006-05-25 Thread David Tulloh
suresh kumar wrote: I am facing one problem in my project.I am trying to call a javascript function from php.but it not executing.this is my code. This is not a php problem, php produces a text file which is interpreted by the browser as html and javascript. Have a look at your

Re: [PHP] calling JS function from php

2006-05-25 Thread Rabin Vincent
On 5/25/06, suresh kumar [EMAIL PROTECTED] wrote: I am facing one problem in my project.I am trying to call a javascript function from php.but it not executing.this is my code. You can't call a javascript function from php. What you can do is output javascript code that calls a javascript

Re: [PHP] calling JS function from php

2006-05-25 Thread Mindaugas L
Hi, print needs escaping, so fix style=\\. Read XHTML requirements. span style=padding-left:14.2cmfont size=2 face=Arial color=#55script type=\text/javascript\; I see you are missing semicolon when calling clientDate(); The same for clientTime(); Javascripts need semicolons at the end of