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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reload in frames

Status
Not open for further replies.

dlc1112

MIS
Mar 28, 2006
3
0
0
US
Hi,

I posted this in the HTML forum as well.

Our company intranet is done in frames. All users are using IE6 with the settings to check for newer versions each visit to page, with a 1MB temp internet folder storage.

The intranet is setup with a header, footer and main frame. The header and footer stay the same. The main frame loads each requested page, such as departmental website information, facility news, ect. Many of these sections are updated regularly, however, users do not see the updated information unless they refresh their browser. This is becoming quite an issue.

Could anyone provide code that would help with this issue?

Thanks!
 
Well... if you're using JavaScript to load the pages into the frames, you could append a unique number to the end to fool IE into loading a new copy each time:

Code:
obj.src = 'someFile.html?uniqueNum=' + new Date().getTime();

Of course, if they're static links, such as:

Code:
<a href="someFile.html">A link</a>

then you'll have to attach the code to the onclick event:

Code:
<a href="someFile.html" onclick="this.href += '?uniqueNum=' + new Date().getTime();">A link</a>

although if you go with that approach, you should put some checking in so you don't add a new number each time the link is clicked, only the first.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hi,

First, thanks for the reply.

Dan -- I just returned from out of town so haven't had a chance to try yet. Once I get things under control here I will give it a try and let you know!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top