![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2006
Posts: 40
Rep Power: 0
![]() |
Why doesnt settimeout work??
I dont wanna write all the code here,I just took that part to let u see my function is after PHP code.I couldnt solve why it is not working properly.It executes the function as if I didnt write any settimeout function there and didnt set the miliseconds property to 10000...I had this problem several of times.But I didnt face the same problem when I wrote only javascript code in one page...
?> <script type="text/javascript"> setTimeout(direct(),10000); </script> |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
<script type="text/javascript">
setTimeout("direct()",10000);
</script>IIRC. |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Feb 2006
Posts: 40
Rep Power: 0
![]() |
Yes right.How cant I miss that simple point.Thanx.
|
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Or
setTimeout(direct,10000); |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|