|
-
Jul 14th, 2001, 10:59 AM
#1
Thread Starter
Junior Member
Refreshing?
Hey all,
I'm trying to design a program that will refresh a specific page a number of times (or just carrys on till it's told to stop)... I've no idea how to do this... any help?
Thanks in advance...
Eternally Yours,
Angelus.
-
Jul 14th, 2001, 11:15 AM
#2
Hyperactive Member
meta tag
Just use the refresh meta tag and specify after how many second you want the page to refresh. So if you want it to refresh every second, use this:
<meta http-equiv="refresh" content="1">
Hope this helps.
-
Jul 14th, 2001, 11:21 AM
#3
Thread Starter
Junior Member
Is that HTML? Because I don't need the HTML way... I need a Visual Basic way... if it is a vb way.... how do I use it?
Eternally Yours,
Angelus.
-
Jul 14th, 2001, 11:34 AM
#4
Hyperactive Member
Yes, that is an HTML tag. Are you writing a VB app or do you want a way to refresh an HTML page using VBScript?
-
Jul 14th, 2001, 11:39 AM
#5
Thread Starter
Junior Member
A way to refresh a HTML page using VBScript.
Eternally Yours,
Angelus.
-
Jul 14th, 2001, 12:05 PM
#6
Hyperactive Member
What's wrong with using the metatag? As far as I know, there is no other way.
-
Jul 14th, 2001, 12:07 PM
#7
Thread Starter
Junior Member
Nothing.... It's just that I'm not sure how to use HTML in my visual basic program...
Eternally Yours,
Angelus.
-
Jul 14th, 2001, 12:16 PM
#8
Hyperactive Member
OK, well when you're using VBScript, your HTML tags are still set up normally. So this is what your page would look like:
Code:
<html>
<head>
<title>Refreshing Page</title>
<meta http-equiv="refresh" content="1">
</head>
<body>
<script language="VBScript">
Place your code here.....
</script>
</body>
</html>
There's no need for any VB code to refresh the page, the meta tag does it itself, regardless of your code.
-
Jul 14th, 2001, 12:22 PM
#9
Thread Starter
Junior Member
How do I specify the URL to refresh?
Eternally Yours,
Angelus.
-
Jul 14th, 2001, 12:52 PM
#10
Hyperactive Member
Well, I assumed that you want to refresh the page that you placed the code in. So if you have it in index.html, it will refresh index.html. But if you want it to refresh to a new page, you will have to accept the default 5 second refresh rate, and specify the URL in the content parameter. So from index.html to news.html, you would do this:
<meta http-equiv="refresh" content="news.html">
So, when index.html is loaded, it waits 5 seconds until it loads news.html.
-
Jul 14th, 2001, 02:56 PM
#11
Thread Starter
Junior Member
Thats not what I wanted. The program will hopefully be used to refresh other pages that I (nor the program's user) has access to. For example, if you wanted to refresh a hit counter on another site, or to refresh the page on a site to get a random picture to text shown.
Eternally Yours,
Angelus.
-
Jul 14th, 2001, 03:24 PM
#12
Hyperactive Member
OK, now I understand, although I'm not sure that I can help you.
You would have to pass a refresh command to whatever browser you're using, and I don't how to do that...
-
Jul 14th, 2001, 03:30 PM
#13
Thread Starter
Junior Member
Thankyou for your help
Anyone else care to help me!?
Eternally Yours,
Angelus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|