Edit this page

up.radio up.radio.startPolling(fragment, [options])
JavaScript function

Starts polling the given element.

The given element does not need an [up-poll] attribute.

Parameters

fragment Element

The fragment to reload periodically.

[options.interval] number optional

The reload interval in milliseconds.

Defaults to up.radio.config.pollInterval.

[options.url] string optional

The URL from which to reload the fragment.

Defaults to the closest [up-source] attribute of an ancestor element.

[options.ifLayer='front'] string optional experimental

Controls polling while the fragment's layer is covered by an overlay.

When set to 'front', polling will pause while the fragment's layer is covered by an overlay. When the fragment's layer is uncovered, polling will resume.

When set to 'any', polling will continue on background layers.