HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Need to Auto-Refresh multiple pages
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML
View previous topic :: View next topic  
Author Message
lkarelee



Joined: 02 Sep 2009
Posts: 3

PostPosted: Wed Sep 02, 2009 8:43 am     Need to Auto-Refresh multiple pages Reply with quote

We have fleet maintenance shops that display on-going work on big monitors mounted on the walls. In some our shops the work order count can exceed 100 lines - the page size is easiest to read is about 75 lines. We need to be able to have the display REFRESH to page 2 (if it exists) then after 3-4 minutes REFRESH back to page 1 and then wait another 3-4 minutes and go to page 2.

Currently the pages do REFRESH every 300 seconds using the following HTML code <meta http-equiv="refresh" content = "300"

Can we refresh to the next page then back again?
sticks464



Joined: 31 Dec 2006
Posts: 2311

PostPosted: Wed Sep 02, 2009 9:06 am     Reply with quote

Yes, put a redirect/refresh statement on each page

Example: (enter on 1st page)
Code:
<META http-equiv="refresh" content="300;URL=page2.html">

Example: (enter on page2)
Code:
<META http-equiv="refresh" content="300;URL=page1.html">


Every 300 sec. page1 will go to page2, after 300 sec. page2 will go back to page1.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3599
Location: Biloxi, MS

PostPosted: Wed Sep 02, 2009 9:12 am     Reply with quote

As I see it, there has to be a page 2 to do it the easy way. The easy way is the normal meta refresh timed to go to the other page. Page 1 would have the refresh to go to page 2 and page 2's meta refresh back to page 1. The timing for refresh is set in normal way. JavaScript also can be used for this refresh.
lkarelee



Joined: 02 Sep 2009
Posts: 3

PostPosted: Wed Sep 02, 2009 9:29 am     Reply with quote

Let me understand - this will only work if there are always 2 pages - correct? If there is not enough open work to require more than 75 lines then there is no way to do this?

thanks for your help
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3599
Location: Biloxi, MS

PostPosted: Wed Sep 02, 2009 9:58 am     Reply with quote

Well, if the 1st page refreshes to a page that is not there, you may get an error. As long as there is something at the URL 1st page is refreshing to, then there shouldn't be a problem. I would think it could be blank

Can that be set up that way?
lkarelee



Joined: 02 Sep 2009
Posts: 3

PostPosted: Wed Sep 02, 2009 10:31 am     Reply with quote

Not sure - since these pages are created 'dynamically' as needed ( we use Code Charge Studio to create our display pages) - not sure how that would work.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3599
Location: Biloxi, MS

PostPosted: Wed Sep 02, 2009 11:11 am     Reply with quote

The alternative is to get someone to write a script for that function. Maybe PHP and set it up to generate new page after a certain amount of lines then go to that page for an x-amount of time. The code writer would know best how to get it written to do what you need it to do.

Maybe something like this:

Load pages using URL variables and PHP include() function
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial