Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Refresh a page but with a twist....

Status
Not open for further replies.

SteveAudus

Technical User
Oct 4, 2001
409
GB
I have a page of ever changing information, I have staff opening the page and leaving it open.
So I added the command
<META HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;300&quot;>
To refresh the page content every 5 mins, but....

Staff continue to work on their computers with the web page
minimized so when it refreshes the I.E maximizes the page.

Is there any way of refreshing a page without it maximizing?

Is there a bit of code?
or is there a setting I could change in IE?

Any suggestions?

Steve Audus
Network Manager
Chaucer School, UK
 
Well, I´m not sure if I read you correct, but here´s a javascript that will relaod a certain frame. The 5 mins intervall I´m not sure on how to do but I´m convinced that you could set an ASP command to do that!

[<script language=javascript>
{
document.parent.frame(&quot;MyFrame&quot;).reload()
}
</script>]

(could be another javascript syntax, but try it out and replay if it doesn´t work out!)
 
just insert the code in the top of your html document and then call it every 5 mins...

you could also put: &quot;ReloadFrame = &quot;(and the document.parent... code) and then call the function &quot;ReloadFrame&quot; every 5 mins, and the fuction will execute, meaning that the reload code will run!

Simple, huh... :)

On how to call the function, I´m not much of a javascript programmer, so I couldent really say, but try the javascript forum on how to execute a function on a specific time/miniute etc!

good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top