#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Canton, OH, USA
    Posts
    37
    Rep Power
    15
    So far the only way I can see to set up a timer is to use a function call to the current system time and test if it exceeds a calculated target time. Is there a way to do this without a system call? Say I want to change some information and refresh the page display every 2 minutes.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Location
    Denmark
    Posts
    83
    Rep Power
    16
    try

    ------------------------------
    <html>
    <script language="JavaScript">
    <!---
    var tmID = null
    function start(){
    setTimeout("mysubmit()",120000)
    }
    function mysubmit(){
    document.stubform.submit()
    }
    // -->
    </script>
    <head>
    <title></title>
    </head>
    <body onLoad="start()">

    </body>
    </html>
    --------------------------

    I know it uses a form, but you could modify it to match your needs....




    ------------------
    regds..
    -ulrik-

Similar Threads

  1. php script won't work inside "cgi-local" directory
    By Volitics in forum PHP Development
    Replies: 5
    Last Post: April 26th, 2004, 10:50 PM
  2. How to see the Memory used by a PHP script?
    By Pardall in forum PHP Development
    Replies: 4
    Last Post: February 13th, 2004, 03:54 PM
  3. Change this PHP script to use NETPBM instead of GD
    By hknight in forum Project Help Wanted
    Replies: 1
    Last Post: February 10th, 2004, 11:46 AM
  4. Replies: 1
    Last Post: February 4th, 2004, 01:39 PM
  5. Executing PHP script using crontab with PHP module
    By crazyIvan in forum PHP Development
    Replies: 0
    Last Post: January 23rd, 2004, 08:27 AM

IMN logo majestic logo threadwatch logo seochat tools logo