Digital Web Magazine suggests, "If you must create an auto-refreshing page, warn the user and allow them to request more time, if possible." Good examples of this are washingtonpost.com's Live Online chats, during which users may specifically designate "Automatically Update Page" (in the left rail). Here's what I'd like to see: A little box or graphic in a corner of the front page, or every page for that matter, that would flash or change when new stories have been posted or when the site has been updated. Putting it on every page sitewide might be a little too much, though -- maybe a new window?
Perhaps an auto-refreshing iframe or something similar - in the case of new stories it could provide links to them -- I think this would be good because some of the larger sites have so much content that unless the new story is really big, it's tough to find. As much as I hate pop-up windows, I think using them might be appropriate in this case.
To enable auto refresh in Chrome, download and install the extension (UPDATE: Auto Refresh Plus is no longer available.
When and how to use autorefresh is an issue we've recently dealt with.
Because we run a headline news service with updates any time of the day -- AND because we know many users have their browsers set to read from the cache for an hour, several hours, or until the next restart -- we decided to set a 20 minute refresh on our home page.
That method requires that you identify all JSF components and write them into your JSF pages.
What if the dynamic elements cannot be identified until run time?
Each site is different, and required a different method for pulling in this information.
Fortunately, we used a plugin for our CMS to do all of the heavy lifting and processing for us.
Your Java Script code can write this new data into the page whenever it receives it.
Create your HTML5 page as follows: You can put any content you like in your element, as long as it has an ID attribute so that you can identify it in your script.
Previously we discussed an online service called Refresh This that can automatically refresh a website across any browser but turns out that the service has joined the deadpool of web services. If you are looking for an online alternative, you can try lazywebtools but these services are kinda unreliable.
So, today we will see how you can integrate this feature right in your browser (Chrome, Firefox and Opera) so that you can directly refresh web pages without using any third party service.
We will use HTML5 and Java Script at client side, with PHP at server side.