Solved

Auto Reload Page

Posted on 2004-03-23
3
357 Views
Last Modified: 2008-02-01
Hi Experts,

Could you please help me:

If I want to refresh my web page in some seconds, just like :

when 10 sec, go to page 1 ,
when 15 sec, go to page 2,
when 20 sec, go to page 3 and so on.....

Also, I want to maintain my web address, is it posible to use "frame" to refresh the content while maintain at the same web address?

Can html can do this ? if yes, could you please give me some code?

Thanks
kchoed
0
Comment
Question by:kchoed
  • 2
3 Comments
 
LVL 4

Expert Comment

by:RedLava
ID: 10664544
Hi kchoed,

This is possible. The way to do it is by using a meta refresh within each of your pages set to refresh to the next page after 10 seconds.
Once you have all your pages refreshing to each other they can be put in an index.htm frameset on the root of your site.

I will follow with code shortly.

The only thing to keep in mind is that if the pages are refreshed after 10 seconds they may have not loaded properly in that time. Is this an issue?

RedLava
0
 
LVL 4

Accepted Solution

by:
RedLava earned 300 total points
ID: 10664567
kchoed,

Page 1 code (page1.html):

<HTML>
  <HEAD>
    <META HTTP-EQUIV=Refresh CONTENT="10; URL=page2.html"/>
  </HEAD>
  <BODY>
    Your content
  </BODY>
</HTML>

Page 2 code (page2.html):

<HTML>
  <HEAD>
    <META HTTP-EQUIV=Refresh CONTENT="10; URL=page3.html"/>
  </HEAD>
  <BODY>
    Your content
  </BODY>
</HTML>

Page 3 code (page3.html):

<HTML>
  <BODY>
    Your content
  </BODY>
</HTML>

Index page (index.html):

<HTML>
  <HEAD>
    <TITLE>Your title</TITLE>
  </HEAD>
  <FRAMESET ROWS="100%">
    <FRAME SRC="page1.html">
  </FRAMESET>
</HTML>


RedLava
0
 

Expert Comment

by:krusho
ID: 10756122
putting something like the following would work

//on page 1
<head>
<META http-equiv="Refresh" content="10;URL=page2.html">
</head>

//on page 2 (given that you meant this page lasts 15 seconds)
<head>
<META http-equiv="Refresh" content="10;URL=page3.html">
</head>

basically just put tthat meta tag in the header of any page you want to wait and then refresh itself goign to a new page.

and for the frame just have this on a main page:
<FRAMESET cols="100%,*" border="0" bordercolor="#0000cc">
      <FRAME name="index" src="page1.html" scrolling="no" noresize>
<NOFRAMES>

that makes it so there is no border on the frame (they wont know its a frame) and there is no scrolling the frame or resizing it (good for stopping people from messign up a perfectly good site with their changing stuff)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Wrapper for APPs 9 76
help squeezing some space out in this site 9 34
HTML5 Get data in table rows 5 29
How can I implement a "Select All" with this configuration...? 6 42
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question