HTML Tutorial


 /help/HTML Help Forum   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!
Continuous Refresh
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
nem5009



Joined: 19 Jul 2009
Posts: 1

PostPosted: Sun Jul 19, 2009 10:12 pm     Continuous Refresh Reply with quote

I'm still relatively new to html.

So what I have currently is a page that loads a "window" and everything outside the window. then once ?postview=true it loads all the contents within the window. It refreshes every 5 seconds. I learned this from a pretty simple online tutorial. But then once I tried expanding on it's utility, my knowledge isn't proving enough.

when a button within the window is pressed, I want it to load a new form. As you can imagine this presents a problem, because it will not wait for them to input their data it will give them until the current refresh expires, then it will reload the list from the database.

I would like to solve it one of two ways:

1) create the form within the refreshing "window," but stop the refresh timer.
2) create the form in the postview outside the "window"

I think the second option would probably be better cause the list would continue to stay current, but I think this might be very complicated with my limited knowledge of the postview structure.

NOTE: my code model uses a lot of php, so I know it goes outside the scope of html, but if you guys know anyway to stop a refresh timer or how to pass variables through a refresh it might help me out.

here's a high level outline of my code as it stands:

Code:

if( postview="true" )
{
     <meta http-equiv="refresh" content="5" />
     if( button_pressed() )
     {
     //     <form action="" method="POST">
     //     <input type="submit" name='submit1' //value="Delete" />';
     //     *execute refresh alteration here*
     }
}
else
{
     //construct everything outside the window;
     //set ?postview=true;
}


any advice you guys could give me would be greatly appreciated.
Richard_zhou



Joined: 09 Jul 2009
Posts: 17
Location: Shenzhen,China

PostPosted: Wed Aug 05, 2009 7:51 pm     Reply with quote

keep updated is better for website and search engine, but if you refresh so fast, it's looks bad for search engine, maybe it's helpful for site function.
fifa0864



Joined: 25 Aug 2009
Posts: 2

PostPosted: Wed Aug 26, 2009 6:10 am     Reply with quote

Continuous Refresh is not recommeneded at all.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> 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