|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
problem using javascript with php
I'm using this script in my head tag just for testing how to use javscript with php, to go but i doesn't seem to work..
<head> <?php echo " <script language='javascript'> function check(){ date = new Date() ; if(date.getMinutes == 30){ document.write('YES') ; } } timerID = setInterval('check()',1000) ; </script> " ; ?> </head> it was sopused to print Yest when minutes equals 30 , but i didn't Wat seem to be the problem ? |
|
#2
|
|||
|
|||
|
RE: problem using javascript with php
I know the answere , because php i run one time from server side.
And then return back the javascript output , and javascript i think wil run only one time, but isn't the setIntervalfunction suposed to be going on? |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > problem using javascript with php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|