 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
nem5009
Joined: 19 Jul 2009 Posts: 1
|
Posted: Sun Jul 19, 2009 10:12 pm Continuous Refresh |
|
|
|
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
|
Posted: Wed Aug 05, 2009 7:51 pm |
|
|
|
| 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
|
Posted: Wed Aug 26, 2009 6:10 am |
|
|
|
| Continuous Refresh is not recommeneded at all. |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|
|