Re: [PHP] calling JS function from php

2006-05-25 Thread Mindaugas L
Hi, print needs escaping, so fix style=\"\". Read XHTML requirements. ""; I see you are missing semicolon when calling clientDate(); The same for clientTime(); Javascripts need semicolons at the end of statement. in the beginning style must be On 5/25/06, Rabin Vincent <[EMAIL PROTECTED]>

Re: [PHP] calling JS function from php

2006-05-24 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-24 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 html/ja

Re: [PHP] calling JS function from php

2006-05-24 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(); v