aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to control Auto refresh by checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to control Auto refresh by checkbox" Watch "How to control Auto refresh by checkbox" New topic
Author

How to control Auto refresh by checkbox

rajee Malar
Greenhorn

Joined: Nov 14, 2003
Posts: 9
Hi,
I need a help to control the Auto refresh by checkbox. In a page, there is one checkbox. If the the checkbox is checked refresh on that page should start and pages should be refreshed for every 5 minutes. If the checkbox is rechecked, auto refresh should be stopped. ie refreshing the page for every 5 minutes should be stopped.
Please help me on this one.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
First off,
Welcome to the ranch. Java Ranch has one rule and that is to have your disply name to be two words and hopefully your real name or a real sounding name that is not a famous person! You can change your display name by clicking My Profile link above.
Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Now for the helpfullness

You need to change the 1000 to the equivilant to 5 minutes. The function counts in milliseconds.
Eric
rajee Malar
Greenhorn

Joined: Nov 14, 2003
Posts: 9
Thanks.
Here is my 2 problem. Auto refresh starts autometically. I want to start whenever the checkbox is checked.
Another problem how to stop it. I am unable to stop the auto refresh even if i uncheck the checkbox.
Please share your ideas.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
here:
rajee Malar
Greenhorn

Joined: Nov 14, 2003
Posts: 9
Thanks Eric. It works fine now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to control Auto refresh by checkbox
 
Similar Threads
Refreshing input at preferred time intervals
pop up for new mail - mail application
how to go about it?
JSP page time out
Needs to connect unix box from JAVA