Posted By: Lloyd_Humph | Apr 14th, 2007 @ 7:43 AM
page 1 of 1
Comments: 18 | Views: 9657
Lloyd_Humph
Lloyd_Humph
If Blackberrys are addictive cellphones, Channel9 is the ultimate addictive website.
IS there a way to make IE7/FF/Opera auto-refresh?

If not then if i constructed a browser in VB (something simple) how would i make it automatically refresh the page every few seconds?
littleguru
littleguru
<3 Seattle
Refreshing (in a traditional way) in a browser means to reload the web site's content from the server. That means that, for example, all input in your forms might be lost, the page is scrolled back up to the top, etc.

That's also why AJAX has been thought up: to refresh only parts of a website.

The refresh call would look like this in C#:

webBrowser1.Refresh(WebBrowserRefreshOption.Completely);
littleguru
littleguru
<3 Seattle
Lloyd_Humph wrote:
Sorry, dont know C... after I "master" vb would it be a good idea to go strait for C/C# or should i go to something like Python, Ruby, PERL, etc.


Oh. Poor you, I'll give you the VB.NET version. Create a new Windows Form application in VB Express. Add a Webbrowser control to the form. Add a button to the form. Add this code to the Click even handler of the button (double click the button to open the click event handler):

WebBrowser1.Refresh(WebBrowserRefreshOption.Completely)
Nils
Nils
silverlight=true :)
There is a Firefox plugin called ReloadEvery (https://addons.mozilla.org/firefox/addon/115) that reloads a page (actually the tab) with a custom frequence.
littleguru
littleguru
<3 Seattle
Lloyd_Humph wrote:
doesnt that just refresh though? i want it to automatically refresh after a preset number of seconds/minutes etc.


A refresh of a website is always a reload from the web server! HTTP is state less. You have to reload all the page (or use AJAX). That's how it is now. The plugin does that: reloads the whole page from the webserver.
littleguru
littleguru
<3 Seattle
Lloyd_Humph wrote:
How does the auto-refresh plugin work? right click on tab or refresh button or what? none of those work for me...


Start Firefox. Install the plugin. Open the web site you want to reload. Right click it. Go to "Reload Every". Set the seconds and click the "Enable" menu entry.
littleguru
littleguru
<3 Seattle
Lloyd_Humph wrote:
nvm i know how... also works for opera if installed. weirdly enough.. hmmm. maybe its a plugin for opera also.


Opera is probably having an interface to use the firefox plugins.
Matthew van Eerde
Matthew van Eerde
AKA Maurits
Are you the author of the page?  If so you can add a Refresh: header.  Note this is not an HTTP standard header, but it is widely supported.  If you can't add headers you can add a <meta http-equiv="refresh" content="60" /> tag.
CannotResolveSymbol
CannotResolveSymbol
{insert caption here}
littleguru wrote:

Lloyd_Humph wrote: nvm i know how... also works for opera if installed. weirdly enough.. hmmm. maybe its a plugin for opera also.


Opera is probably having an interface to use the firefox plugins.


Actually, auto-reloading is built into Opera.  It's purely a coincidence that the text and method of access is the same.  Smiley
littleguru
littleguru
<3 Seattle
Lloyd_Humph wrote:

Matthew van Eerde wrote: Are you the author of the page?  If so you can add a Refresh: header.  Note this is not an HTTP standard header, but it is widely supported.  If you can't add headers you can add a <meta http-equiv="refresh" content="60" /> tag.


Actually, im using it on the C9 forums - so i dont have to keep re-loading to check for new posts, threads... etc.


You could also use an RSS reader and subscribe to the RSS feed. Smiley There are a lot of free RSS reader available.
blowdart
blowdart
Peek-a-boo

Well done for brining up a 2 year old thread to pimp your service. That doesn't look like spam at all, no siree!

alwaysmc2
alwaysmc2
It's not stupid; It's advanced!

I know this was built-in funcionality in Opera years ago... I don't know if it's still in there.  The option would re-send form data as I would expect.  This was good for gaming some site that I have forgotten about...

that's weird, I can only see your post after the 2 years old one Smiley

page 1 of 1
Comments: 18 | Views: 9657
Microsoft Communities