Hi, I looked at Views with intention to find Auto Refresh option, but not found.
Is there any possibility to have a page with a list of nodes refreshing every amount of seconds or trigered refresh after new node creation ?

Something like Gmail. When you have a list od mails the new ones are showing on the top automaticaly.

If not views option, do you know any modules which can do that ?

I checked this one: http://drupal.org/project/refresh , but its not for Views..

Thanks

Comments

dawehner’s picture

I really don't think that this is sense-full for views core.
But I understand your reasons, why you need it.

I think refresh module is the right place to create a patch for it.

benone’s picture

Yes, but Refresh module is working for whole site and refreshes in a "visible" way, likne normal Refresh button in each browser.
Another module - Block refresh - doesnt care about Views pages, it means when you have pager in your view and ajax , the view is refreshing to the first page each time, so you cant normally viewing another pages.

I thought if there is option to use Ajax in view settings, there could be a small window to place refresh seconds also.
Nice feaature and really useful and really common these days.

Could you help me with patching Refresh module to work only with the view, not whole page ? Is that complicated ?

Thanks, B.

kaakuu’s picture

This is an useful thing just like gmail.
The php forum script blursoft metaforum offers an even further nifty feature - an audio alert ( configurable to keep it off or on ) when you are away in another window or busy in someplace else like kitchen. The alert makes a short beep whenever there is new node that makes to the list.

For the time being I needed this and used metarefresh in the header area of the views - this is better than having nothing at all.

benone’s picture

Yes, meta refresh or block refresh is the only option tight now, but it's not really professional looking.

If anybody have idea for a snippet refreshing views div , please shout :).

Maybe some ajax to the template ? If I know the name of my views div I can refresh the div in this way, am I right ?

Gmail refreshing is really good , this is what makes your VIEW ALIVE !

B.

benone’s picture

BTW. If not autorefresh in gmail view I woudn't answer to your post so quickly ;)

pribeh’s picture

I definitely support this feature but perhaps in a submodule or another module such as ajax_views_refresh (http://drupal.org/project/ajax_views_refresh). Here (http://drupal.org/node/541226) is a formal request I just made to the maintainer of ajax_views_refresh.

schvili’s picture

Did you manage to find a solution for this?

dayre’s picture

subscribing.... this would be an extremely useful feature... i had a look at the views js code, but it doesn't seem simple to tease a new function out of to do this.... my Javascript chops aren't quite there yet.

This is a similar request here #369693: Refresh a view (from JavaScript)... as if there was a simple javascript call one could make, you could just use setTimeout/Interval to trigger the calls...

merlinofchaos’s picture

Status: Active » Closed (duplicate)
somebodysysop’s picture

For the time being I needed this and used metarefresh in the header area of the views

Could you provide the code you used to do this?

somebodysysop’s picture

Sorry, here is the code to put into the views header:

print "<meta http-equiv=\"refresh\" content=\"60\" />";
pankaj01’s picture

Meta refresh is a deprecated method of instructing a web browser to automatically refresh the current web page. W3c does not recommend it. Check wikipedia.
And search engines dont like it as it used by spammers to fool search engines. So search engines opt out of pages that have the Meta refresh.

SeanBannister’s picture

Check out the Views Hacks module, it contains Views Auto-refresh.