Java timer script to click url at set time each day

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patberry
    New Member
    • May 2007
    • 9

    Java timer script to click url at set time each day

    I need a javascript to click an URL link at 7:00pm CST everyday which starts a web presentation?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by patberry
    I need a javascript to click an URL link at 7:00pm CST everyday which starts a web presentation?
    Post the question in your own thread in the Javascript forum.

    Comment

    • patberry
      New Member
      • May 2007
      • 9

      #3
      Java timer script to click url ar set time each day

      I want to automate the starting of a webcast every day. I need a javascript that will check the time and click a url every day at 7:00pm CST.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by patberry
        I want to automate the starting of a webcast every day. I need a javascript that will check the time and click a url every day at 7:00pm CST.
        Java != Javascript.

        Moved to Javascript forum.

        Comment

        • dmjpro
          Top Contributor
          • Jan 2007
          • 2476

          #5
          i m not sure that i understand ur problem.
          yet i responding u .....

          if ur page opened and the time is 7:00pm then the specified URL is redirected....r ight????

          then set a timer see the JS API (setTimeInterva l and setTimeOut) and update the window.location .href with the spcified URL when the time is 7:00pm.

          best of luck

          kind regards.
          dmjpro.

          Comment

          • patberry
            New Member
            • May 2007
            • 9

            #6
            Originally posted by patberry
            I want to automate the starting of a webcast every day. I need a javascript that will check the time and click a url every day at 7:00pm CST.
            Sorry I am a total Newbie I though I was posting in the correct area.

            Comment

            • patberry
              New Member
              • May 2007
              • 9

              #7
              Originally posted by dmjpro
              i m not sure that i understand ur problem.
              yet i responding u .....

              if ur page opened and the time is 7:00pm then the specified URL is redirected....r ight????

              then set a timer see the JS API (setTimeInterva l and setTimeOut) and update the window.location .href with the spcified URL when the time is 7:00pm.

              best of luck

              kind regards.
              dmjpro.
              Thanks I am a total newbie. The url I want to go to is 2.htm everyday at 7pm CST what would the could be that I would need to insert in the page.
              Thanks in advance for your help

              Comment

              • patberry
                New Member
                • May 2007
                • 9

                #8
                Originally posted by patberry
                Thanks I am a total newbie. The url I want to go to is 2.htm everyday at 7pm CST what would the could be that I would need to insert in the page.
                Thanks in advance for your help
                It is on the same domain and will be put on 1.htm I already have a timer refresh script on 2.htm, 3.htm etc that takes it to the next page when the audio is finished from each page.

                Comment

                • acoder
                  Recognized Expert MVP
                  • Nov 2006
                  • 16032

                  #9
                  Do you want to redirect to that page or open a new window?

                  In your window onload, execute a function which runs at set intervals using setInterval. How often depends on how accurate you wish to be.

                  Then check out the Date object. Use that to determine the current time. If the time is right, either change the location using location.href=. .. or open a new window depending on what you want.

                  Comment

                  • iam_clint
                    Recognized Expert Top Contributor
                    • Jul 2006
                    • 1207

                    #10
                    ok your trying way to hard i guess? use a windows scheduled task to open page2.htm at 7pm every day.

                    Comment

                    • patberry
                      New Member
                      • May 2007
                      • 9

                      #11
                      Originally posted by acoder
                      Do you want to redirect to that page or open a new window?

                      In your window onload, execute a function which runs at set intervals using setInterval. How often depends on how accurate you wish to be.

                      Then check out the Date object. Use that to determine the current time. If the time is right, either change the location using location.href=. .. or open a new window depending on what you want.
                      I am looking to redirect

                      Comment

                      • patberry
                        New Member
                        • May 2007
                        • 9

                        #12
                        Originally posted by iam_clint
                        ok your trying way to hard i guess? use a windows scheduled task to open page2.htm at 7pm every day.
                        Yes but it has to open the URL in the webcast browser not the default windows browser?

                        Comment

                        • acoder
                          Recognized Expert MVP
                          • Nov 2006
                          • 16032

                          #13
                          Originally posted by patberry
                          I am looking to redirect
                          So use location.href to change the url.

                          Comment

                          • patberry
                            New Member
                            • May 2007
                            • 9

                            #14
                            Originally posted by acoder
                            So use location.href to change the url.
                            I have looked at all the suggestions and they are great, but I still can't get it to work. The Windows Task opens the page in IE no matter what I do it also opens a new instance of IE even if I have on already open which is a problem because I need to be logged in as a moderator to control the webcast. I already use timer script to go from 2.htm to 3.htm ect. All I need is a script to put on the index page that automatically goes to 2.htm at 7pm CST everyday. This would completely automate the webcast. I would be willing to make a donation or pay someone to not point me in the right direction, but provide me a working script. Thanks looking forward to your response.

                            Comment

                            Working...