Results 1 to 3 of 3

Thread: Call a function every hour?

  1. #1
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Call a function every hour?

    Hey,

    I don't know too much about javascript but i am trying to make this rss reader on a vista gadget (found here: http://www.dynamicdrive.com/dynamici...sdisplayer.htm )but i want to have it refresh automatically every hour.

    It gives instructions that the refresh function can be called with a hyperlink

    <a href="javascript:socialfeed.init()">Refresh Feed Contents</a>


    but how can i have this socialfeed.init() function trigger every hour- or whatever i specify? Any suggestions?

    Thanks so much!

    T

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    <script type="text/javascript">
      setInterval(function() { socialfeed.init(); }, 3600000);
    </script>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wow, Thanks! it works. Easier than i thought. Thanks!

Bookmarks

Posting Permissions

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