Properties Methods Events Config Options Direct Link
Observable
  Provider
    JsonProvider
      PollingProvider

Class CQ.Ext.direct.PollingProvider

Package:CQ.Ext.direct
Class:PollingProvider
Extends:CQ.Ext.direct.JsonProvider
Clientlib:cq.widgets

Provides for repetitive polling of the server at distinct intervals. The initial request for data originates from the client, and then is responded to by the server.

All configurations for the PollingProvider should be generated by the server-side API portion of the CQ.Ext.Direct stack.

An instance of PollingProvider may be created directly via the new keyword or by simply specifying type = 'polling'. For example:

var pollA = new CQ.Ext.direct.PollingProvider({
    type:'polling',
    url: 'php/pollA.php',
});
CQ.Ext.Direct.addProvider(pollA);
pollA.disconnect();

CQ.Ext.Direct.addProvider(
    {
        type:'polling',
        url: 'php/pollB.php',
        id: 'pollB-provider'
    }
);
var pollB = CQ.Ext.Direct.getProvider('pollB-provider');

Config Options

Config Options Defined By
  baseParams : Object
An object containing properties which are to be sent as parameters on every polling request
PollingProvider

Public Properties

Property Defined By
  connect : Object
Abstract methods for subclasses to implement.
Provider
  disconnect : Object
Abstract methods for subclasses to implement.
Provider

Public Methods

Method Defined By

Public Events

Event Defined By