Re: Newbie with a timer question
From: Amey Samant (ameyas7_at_yahoo.com)
Date: 10/24/03
- Next message: Amey Samant: "Re: Newbie with a timer question"
- Previous message: Amey Samant: "Re: ICMP packets"
- In reply to: Matt Revenaugh: "Newbie with a timer question"
- Next in thread: Amey Samant: "Re: Newbie with a timer question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Amey Samant: "Re: Newbie with a timer question"
- Previous message: Amey Samant: "Re: ICMP packets"
- In reply to: Matt Revenaugh: "Newbie with a timer question"
- Next in thread: Amey Samant: "Re: Newbie with a timer question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|