Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Time Refreshing

  1. #1
    New to the CF scene
    Join Date
    Oct 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Time Refreshing

    I posted this before and was told to ask about Java

    I have made time in PHP down to the second using timezone of my choice.

    I want it to autorefresh but not autorefresh the whole page just like the time going up. is this possible?

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    One method in Javascript would be to re-run the function every second by including setTimeout in your timeFunctionName()


    timer=setTimeout("timerFunctionName()",1000)
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •