Auto-Refresh For IE 7

Christopher Casey
Christopher Casey used Ask the Experts™
on
I am looking for a way to auto-refresh a page on IE so it does not time out
Is there a way to script this?
Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
If you are using one browser on one machine

AutoRefresher for IE

http://download.cnet.com/AutoRefresher-for-IE/3000-2378_4-6934685.html

This Internet Explorer addon automatically refreshes websites for you. You can set it to refresh your pages at custom intervals or any predefined ones. Each browser window has its own refresh control. Istaller/uninstaller are included with this package. Great for surfing Web pages that are updated often.

If you are using one browser on many machines

Manually -

Easiest thing, honestly, is to F5-it yourself.
 BUT... check these settings first:
 
 Tools -> Internet Options... -> Settings under Browser History
 Under "Check for newer versions of stored pages:",
 select "Every visit to the page" as opposed to "Automatically", because the 'automatic' setting will not be frequent enough for your intentions.
 
 With "Every visit" selected, you can press F5 and get the page reloaded. (If in doubt, hold CTRL and press F5 to "force" a full screen/page refresh.)

Scripted -

http://support.microsoft.com/kb/201535

To resolve this issue, edit the SyncMode5 DWORD value in the following registry key to verify the correct setting:   HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSettings   The data values for the SyncMode5 value include:   0: Never
 2: Every time you start Internet Explorer
 3: Every visit to the page
 4: Automatically

Copy the code snippet and save it to autorefresh.bat. to use.

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\InternetSettings" /v SyncMode5  /t REG_DWORD /d 4 /f

Open in new window

Robin CMSenior Security and Infrastructure Engineer

Commented:
Is the page your own?
Just add:
<meta http-equiv="refresh" content="60">
to the html header of the page. 60 is the refresh time in seconds.
Usually a good idea to also add:
<meta http-equiv="pragma" content="no-cache">
which stops the page being cached by the browser.
Christopher CaseySr Systems Administrator

Author

Commented:
Actually the issue is the page times out and the user has to click on Home to reactivate the page.
Yes I know its just eliminating users from one click but the higher up's don't want this to happen at all.

My thought was deploying a script that would refresh the target page automatically as if the user clicked the home link.

Thoughts?
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Senior Security and Infrastructure Engineer
Commented:
How about creating a holding page, very basic html, the header contains basically the two meta http-equiv lines I posted, and the body contains something like:
<iframe src="http://your/url/here.htm" width="100%" height="100%" scrolling="no" border="0">
So you embed your "problem" page within another page.
Christopher CaseySr Systems Administrator

Author

Commented:
Will pass through NTLM work with that? or will the frame block the authentication?
Again thank you for the help!
Robin CMSenior Security and Infrastructure Engineer

Commented:
to be honest, not sure - try it!
Christopher CaseySr Systems Administrator

Author

Commented:
Excelent! now for passing the NTLM through and its good!
Thank you!!
Christopher CaseySr Systems Administrator

Author

Commented:
One issue I just noticed..the refresh makes the page go back to the first
How do I stop this?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial