Re: Newbie with a timer question

From: Amey Samant (ameyas7_at_yahoo.com)
Date: 10/24/03


Date: 23 Oct 2003 21:42:43 -0700

Matt Revenaugh <matt@mybogusaccount.com> wrote in message news:<BBBD9F47.29E1A%matt@mybogusaccount.com>...
> OK, so I am a newbie to java. I've been programming for a looong time
> though. I am trying to set up a timer that opens a new browser window every
> so often. I am trying to avoid using the <META refresh...> tag. But I can
> not seem to get the code to work.
>
> Below is the snippet from my web page.
>
> What am I doing wrong. Is it the way I am declaring the classes? Or is it
> something deeper that I have not yet learned. Any help from you java gurus
> is welcomed!
>
> Matt Revenaugh
> Java Newbie
>

hi
i did not get your requirements exactly
CASE 1:
if you want to implement timer inside a web page, you need to write
javascript & not java code. i dont remember properly but there is a
function like settimeout which allows you to call a function after
specified interval

CASE 2:
if you need to open the URL from java
    if you are writin an applet
        you can use AppletContext to open a new document (URL)
    else if java application
        //this is a workaround type solution
        Runtime.exec("iexplore myurl.com");
    end if
end if
(this is the way to browse URLs) you need to implement scheduling task
hope this helps

regards
amey



Relevant Pages

  • Re: Flush ResultSet to Browser
    ... I am a newbie when it comes to Java so thanks for going easy on me. ... noticed the problem with reallocating strReport while debugging. ... Ouch! ...
    (comp.lang.java.databases)
  • Re: drawing a graph
    ... Newbie wrote: ... I have been trying to draw a graph of vertices and edges connecting ... It is a powerful chart package for Java and it is free. ...
    (comp.lang.java.programmer)
  • azureus on linux
    ... I am a newbie to linux and wondering on how to setup azureus on my ... I managed to get the win exe to start from my ntfs mnt but can't ... but it said i needed sun java i went to the site where it told me to go ...
    (alt.linux)
  • Re: Setting up a Java development environment the debian way.
    ... >> I am a complete newbie as far as java is concerned. ... Let me give you my reasoning for thinking about going down the java route. ... I have heard the arguments (specifically the ones suggesting using ruby on ...
    (Debian-User)
  • Vector Help
    ... Im relitivly new to java. ... I guess you could say im a newbie (even ... Vector Elements. ... I need to show information on [Record No / Total Records] ...
    (comp.lang.java)