Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add :name to periodically_call_remote

#468

In our project, we had to assign a variable name to periodically_call_remote, so that we could manipulate it using rjs/javascript (for instance, calling stop()). I changed the periodically_call_remote to include a :name parameter, to generate this:

var updater = new PeriodicalExecuter(function() {new Ajax.Updater('news_block', 'update', {asynchronous:true, evalScripts:true})}, 20)

instead of simply

new PeriodicalExecuter(function() {new Ajax.Updater('news_block', 'update', {asynchronous:true, evalScripts:true})}, 20)

(the name is configurable, of course)

Hope it's useful for anyone else..

Reported by herval · June 22nd, 2008 @ 02:40 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. josh
    josh
    • State changed from new to stale
    • Tag set to actionpack, helper

    September 30th, 2008 @ 05:49 PM