|
-
Jul 15th, 2004, 09:35 AM
#1
Thread Starter
Frenzied Member
Continous refreshing [resolved]
I use the following code to refresh a pge:
PHP Code:
<META HTTP-EQUIV="Refresh" CONTENT="5;URL=<? echo $_SERVER['PHP_SELF']; ?>#bottom">
Now that code does refresh the page after 5 seconds. But it doesn't keep refreshing the page. Why is this and what can I do about it?
Last edited by Acidic; Jul 15th, 2004 at 05:31 PM.
Have I helped you? Please Rate my posts. 
-
Jul 15th, 2004, 09:42 AM
#2
Frenzied Member
The only thing I can think of is to create 2 pages that are exactly alike and have the URL in the meta tag point to the other so they just bounce back and forth, but you still have the same content, and AFAIK, it should keep doing the refresh that way. I haven't tested this theory tho.
-
Jul 15th, 2004, 09:45 AM
#3
Frenzied Member
Ok, just tested it. It works.
-
Jul 15th, 2004, 09:45 AM
#4
Thread Starter
Frenzied Member
Hmm.. I think it'd be easier to make a JavaScript function with a setTimeout to reload the page. The thing is that I didn't want to use JavaScript on this page.
Have I helped you? Please Rate my posts. 
-
Jul 15th, 2004, 09:46 AM
#5
Frenzied Member
Ok, I'm using Opera and the meta refresh keeps refreshing without bouncing to the new page.
Ok, I just tested the normal way in IE and that works too. So what is your problem?
-
Jul 15th, 2004, 10:19 AM
#6
Thread Starter
Frenzied Member
For me it refreshes once, then stops refreshing. I got rid of the php and used the filename instead, thinking that could be it. That didn't change anything.
It might have something to do with that this is inside an iframe. But I don't really see how that matters.
Have I helped you? Please Rate my posts. 
-
Jul 15th, 2004, 12:36 PM
#7
Frenzied Member
Ok, I've tested it within an Iframe also and it works in both IE and Opera. What version of your browser are you using?
-
Jul 15th, 2004, 01:24 PM
#8
Thread Starter
Frenzied Member
well firefox is 0.9.2, but IE is only 5.0 or something. That could be it, but I still don't see why it's happening.
If it realises to refresh once, why doesn't it do it every time? It just seems weird. I might have to use JS then.
Have I helped you? Please Rate my posts. 
-
Jul 15th, 2004, 02:49 PM
#9
Frenzied Member
You don't like my 2 page idea? Seems like a lot of work to create something in JS.
-
Jul 15th, 2004, 03:22 PM
#10
Thread Starter
Frenzied Member
Well, two pages creates one unneccesary page. JavaScript means I have to use Javascript on a pgae where I shouldn't need it. I consider both clutter. It's not absolutely necessary to make the auto-refresh though. I might just not have it.
Have I helped you? Please Rate my posts. 
-
Jul 15th, 2004, 05:11 PM
#11
Member
Code:
<BODY onLoad=window.setTimeout("location.href='pagename.html'",5000)>
GoTta LoVe tEh TRuMpeT!
[vbcode]If HavePepsi = True And Pepsi = Diet Then
ThrowAway(Pepsi, Garbage)
Else If HavePepsi = True
Drink(Pepsi)
End If[/vbcode]
-
Jul 15th, 2004, 05:28 PM
#12
Thread Starter
Frenzied Member
While I'd been trying to avoid JS, I think I'll use that.
Have I helped you? Please Rate my posts. 
-
Jul 15th, 2004, 05:29 PM
#13
Member
Why avoid the easiest solution
GoTta LoVe tEh TRuMpeT!
[vbcode]If HavePepsi = True And Pepsi = Diet Then
ThrowAway(Pepsi, Garbage)
Else If HavePepsi = True
Drink(Pepsi)
End If[/vbcode]
-
Jul 15th, 2004, 05:45 PM
#14
Thread Starter
Frenzied Member
actually I figured out how to do it nicely. I'll put the code in the page which holds the iframe. that way there is still no JS inside the iframe.
Have I helped you? Please Rate my posts. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|