Author Topic: automatic refresh  (Read 30393 times)

tylor2000

  • You never thought it'd hurt so bad
  • *****
  • Posts: 2930
    • View Profile
automatic refresh
« on: March 19, 2003, 07:31:07 pm »
umm...is there a way to make the current page you're on automatically refresh?  If not just figured I'd ask because I like to work that way while my hands are doing something else and every once in a while glance at the screen.....I probably should just get another e-mail address but this is not my computer...university....

tylor

kev222

  • VCUBs
  • Keepin' secrets at midnight
  • *
  • Posts: 3194
  • zero vector
    • AOL Instant Messenger - k3v222
    • View Profile
    • http://www.kev.nu/vc
    • Email
automatic refresh
« Reply #1 on: March 20, 2003, 06:44:18 am »
I imagined there would be settings within browsers to handle auto-refresh, but I couldn't find one in mozilla. So I coded a simple php script to do it. You're welcome to use it to.

Beware, it's a bit of a hack job (like everything I do :-\) and it's never been tested in IE (or any other browser).

http://www.kev.nu/vc/refresh.php

Hope it works.

-Kev

Instructions.

1) Enter the refresh rate in seconds and hit 'Go'
2) The page will refresh every X seconds
3) To stop the refreshing, hit 'Stop'
4) To start the refreshing again, hit 'Start'
5) You can't refresh and individual thread or forum, just the main page [because I'm too lazy to make it good])

tylor2000

  • You never thought it'd hurt so bad
  • *****
  • Posts: 2930
    • View Profile
automatic refresh
« Reply #2 on: March 20, 2003, 06:38:52 pm »
is it safe to use on this public computer or will you get into trouble.

LOL

kev222

  • VCUBs
  • Keepin' secrets at midnight
  • *
  • Posts: 3194
  • zero vector
    • AOL Instant Messenger - k3v222
    • View Profile
    • http://www.kev.nu/vc
    • Email
automatic refresh
« Reply #3 on: March 20, 2003, 07:44:49 pm »
Hah, yeah it's safe. Nothing trouble worthy ;-)

tylor2000

  • You never thought it'd hurt so bad
  • *****
  • Posts: 2930
    • View Profile
automatic refresh
« Reply #4 on: March 20, 2003, 07:58:58 pm »
thanks man...too cool.....I didn't even click the link before you answered...

I'll use it next time....gotta run...

tylor

kev222

  • VCUBs
  • Keepin' secrets at midnight
  • *
  • Posts: 3194
  • zero vector
    • AOL Instant Messenger - k3v222
    • View Profile
    • http://www.kev.nu/vc
    • Email
automatic refresh
« Reply #5 on: March 20, 2003, 08:03:17 pm »
Okay, but don't get your hopes up. It's crap to the point of being unusable :-/ And like I said it might not even work in IE (at the least the frame/scroll bars will be messed up). But, give it a go,  you never know ;-) I still use it on occasion.

-Kev

kaysha

  • Administrator
  • Keepin' secrets at midnight
  • *****
  • Posts: 3806
    • ICQ Messenger - 996740
    • AOL Instant Messenger - katiakaysha
    • View Profile
    • http://www.chickey.org
    • Email
automatic refresh
« Reply #6 on: March 20, 2003, 08:25:38 pm »
worked for me on IE kev... you uber-stud

-katia
I <3 Nicole

We want the unicorns to live! - Vanessa Carlton

tylor2000

  • You never thought it'd hurt so bad
  • *****
  • Posts: 2930
    • View Profile
automatic refresh
« Reply #7 on: March 21, 2003, 01:43:22 pm »
yep worked for me also just before I left.....uber-stud...hehe

kev222

  • VCUBs
  • Keepin' secrets at midnight
  • *
  • Posts: 3194
  • zero vector
    • AOL Instant Messenger - k3v222
    • View Profile
    • http://www.kev.nu/vc
    • Email
automatic refresh
« Reply #8 on: March 21, 2003, 03:19:19 pm »
Erm... thanks?

Heh. Glad it works.

-Kev

Will

  • Moderators
  • Fine as dandelions
  • *****
  • Posts: 1735
  • Advanced anti-spam registrations filter
    • View Profile
automatic refresh
« Reply #9 on: March 27, 2003, 11:06:25 pm »
Quote from: "kev222"

[because I'm too lazy to make it good])


Post the source and let someone else finish the job, in true open source style :wink:.
"Of all the things I've lost, I miss my mind the most." -Ozzy Osborne

kev222

  • VCUBs
  • Keepin' secrets at midnight
  • *
  • Posts: 3194
  • zero vector
    • AOL Instant Messenger - k3v222
    • View Profile
    • http://www.kev.nu/vc
    • Email
automatic refresh
« Reply #10 on: March 28, 2003, 07:17:41 am »
Okay, but I warn you. It aint pretty.

Code: [Select]

<html>
<head>
<title>NH.com auto refresh</title>
<?
if(isset($_GET['rate'])) {
if($_GET['rate'] != 0) {
printf("<meta http-equiv='Refresh' content='%d'>", $_GET['rate']);
$_GET['save'] = $_GET['rate'];
}
else if(!isset($_GET['save'])){
printf("<font color='red'>0 = invalid rate</font><br>");
unset($_GET['rate']);
}
}
?>
</head>

<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<?
if(isset($_GET['rate'])) {
?>
<a href='refresh.php?rate=0&save=<? printf("%d", $_GET['save']); ?>'>Stop</a> <a href='refresh.php?rate=<? printf("%d", $_GET['save']); ?>'>Start</a><br>
<iframe src='http://forum.nessaholics.com' frameborder=0 width='100%' height='100%'><br><br>
<?
}
else {
?>
<form method='GET' action='refresh.php'>
Refresh rate: <input type='text' name='rate' value='60'> seconds<br>
<input type='submit' value='Go'>
</form>
<?
}
?>
</body>
</html>


Open source forever! ;)

-Kev

LostDwarf

  • VCUBs
  • I'd Walk A Thousand Miles...
  • *
  • Posts: 1272
  • Now Found!
    • AOL Instant Messenger - Bionicledwarf
    • View Profile
    • Email
automatic refresh
« Reply #11 on: March 29, 2003, 12:51:28 pm »
8O eek, so kevin ever read 2600?
.........the one and only!

vive-la-france

  • Just a day, just an ordinary day
  • ****
  • Posts: 271
    • ICQ Messenger - 165806753
    • MSN Messenger - Thomas2405831
    • View Profile
    • http://perso.club-internet.fr/alain.rouchaud
well
« Reply #12 on: March 29, 2003, 01:37:14 pm »
i think i'll have to learn html language soon

Was all the forum written in html code ??
I made a website but with Frontpage  LOL so i don't have to know html code.

Yu guys are amazing .... congrats 8O
Thomas aka Dr Doolittle

kev222

  • VCUBs
  • Keepin' secrets at midnight
  • *
  • Posts: 3194
  • zero vector
    • AOL Instant Messenger - k3v222
    • View Profile
    • http://www.kev.nu/vc
    • Email
Re: well
« Reply #13 on: March 29, 2003, 05:24:40 pm »
Quote from: "vive-la-france"
i think i'll have to learn html language soon

Was all the forum written in html code ??
I made a website but with Frontpage  LOL so i don't have to know html code.

Yu guys are amazing .... congrats 8O

Nope, HTML is just a language that describes the static structure of a website (how it should look). The forum is written in a language called PHP. PHP is a level deeper than HTML and can do a lot more (almost anything you'd want) :)

You're on the right track. Frontpage is good for learning HTML, get frontpage to make something and then open the document in notepad and see how it was acheieved in HTML (that's how I learned ;))

-Kev

kev222

  • VCUBs
  • Keepin' secrets at midnight
  • *
  • Posts: 3194
  • zero vector
    • AOL Instant Messenger - k3v222
    • View Profile
    • http://www.kev.nu/vc
    • Email
automatic refresh
« Reply #14 on: March 29, 2003, 06:24:24 pm »
Quote from: "LostDwarf"
8O eek, so kevin ever read 2600?

lol, nope. I've never heard off it, although I can imagine what it is

8)

-Kev