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

using meta refresh in frames

Status
Not open for further replies.

froggerIII

Programmer
Jul 19, 2000
119
US
i have a page in which there is a top frame called "lookup" and a bottom frame called "details". Is there a way to refresh with target = _top so that after 30 seconds, another page will come up, but not just in "lookup"

right now, i am using <META HTTP-EQUIV=&quot;REFRESH&quot; CONTENT=&quot;120;URL=lookup.asp&quot; TARGET=&quot;lookup&quot;> so that the top frame refreshes, but I need the page to go to a page like login.asp, without it appearing in only the top frame. i have tried doint TARGET=&quot;top&quot;, but it won't work [sig]<p>ray<br><a href=mailto:rheindl@bju.edu>rheindl@bju.edu</a><br><a href= > </a><br> [/sig]
 
Ray,

I believe you are confusing &quot;_top&quot; with the top frame. &quot;_top&quot; is a target relative to the browser. Using this causes the url to load into the current window not the &quot;top&quot; frame. What you need is the following within your top frame code...

either...
Code:
<html>
<head>
<meta http-equiv=&quot;REFRESH&quot; content=&quot;120;URL=lookup.asp&quot; target=&quot;_self&quot;> 
</head>
</html>

&quot;_self&quot; is the current frame or document (if no frames).

In javascript here is the same code...

Code:
<html>
<head>
<script language=&quot;javascript&quot;>
 function fnNewPage(){
  window.navigate(&quot;lookup.asp&quot;)
 }
</script>
</head>
<body onload=&quot;setTimeout('fnNewPage()',120*1000)&quot;>
</body>
</html>
[code]

This is included as it allows you to use javascript routines to customize the user experience a bit more.

Hope this helps,
Rob [sig][/sig]
 
ok, i don't think i was too clear: right now, only the upper frame (to avoid confustion with the keyword _top, which i think i mistyped in a coulple of places) is refreshing to the new page. I want the new page to get rid of the frames so that it takes up the whole window, and i don't want to use setTimeout because i would have to reset the timer in numerous places. [sig]<p>ray<br><a href=mailto:rheindl@bju.edu>rheindl@bju.edu</a><br><a href= > </a><br> [/sig]
 
Aaaahhh, that makes a difference.

Put the meta tag to refresh within the frameset page and use the _self target.

Rob [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top