Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


auto refresh

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3338
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> auto refresh
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 auto refresh - 6/11/2005 5:04:00 AM   
  gibbo1715

 

Posts: 52
Score: 0
Joined: 6/8/2005
From:
Status: offline
is there a way to get vb script to auto refresh a page?
 
 
Post #: 1
 
 Re: auto refresh - 6/11/2005 6:29:08 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
<META... is the easiest, or use a LOCATION.HREF

SendKeys -> F5 will do aswell

(in reply to gibbo1715)
 
 
Post #: 2
 
 Re: auto refresh - 6/11/2005 8:37:11 AM   
  gibbo1715

 

Posts: 52
Score: 0
Joined: 6/8/2005
From:
Status: offline
you ll have to explain that 2 me, sorry web programming is new to me

(in reply to gibbo1715)
 
 
Post #: 3
 
 Re: auto refresh - 6/12/2005 3:49:27 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
The Tag
The meta tag belongs within the <head> of your HTML document. When used to refresh the current page, the syntax looks like this:


<meta http-equiv="refresh" content="600">

meta
This is the actual HTML tag. It belongs in the <head> of your HTML document. You can learn more about the meta tag in my tag library.

http-equiv="refresh"
This attribute tells the browser that this meta tag is sending an HTTP command rather than a standard meta tag. Refresh is an actual HTTP header used by the Web server. It tells the server that the page is going to be reloaded or sent somewhere else.

content="600"
This is the amount of time, in seconds, until the browser should reload the current page.

Some of the more common uses of the reload version of the refresh tag is to reload a page that has dynamic content on it. For example: a stock ticker or weather map. Some people also use them to reload ads, but that can annoy your readers.

Redirecting to a New Page
While the reload option is useful, it is usually not what people want from the meta refresh tag. To redirect to a new page, the syntax is nearly the same:

<meta http-equiv="refresh" content="2;url=http://webdesign.about.com/">

The only difference is in the content attribute.
content="2;url=http://webdesign.about.com"
The number is the time, in seconds, until the page should be redirected. Then, separated by a semi-colon (;) is the URL that should be loaded.

Keep In Mind
Meta refresh tags have some drawbacks:

If the redirect happens quickly (less than 2-3 seconds), your readers can't hit the "Back" button. This annoys many people.
Refreshing the current page can confuse people. If they didn't request the reload, some people can get concerned about security.

(in reply to gibbo1715)
 
 
Post #: 4
 
 Re: auto refresh - 6/12/2005 5:38:59 AM   
  gibbo1715

 

Posts: 52
Score: 0
Joined: 6/8/2005
From:
Status: offline
thatnks, from a slightly different angle, can i get a button on a form to refresh the page after it has run some vbscript?

(in reply to gibbo1715)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> auto refresh Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts