AJAX Update Timer for Salesforce Controllers

Using a Timer for AJAX Updates in Salesforce Controllers

Question

A timer that sends an AJAX update request to the server according to a time interval that you specify.

The update request can then result in a full or partial page update.

You should avoid using this component with enhanced lists.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

The component that fits the description provided in the question is the apex:actionPoller. This component allows you to specify a time interval for sending an AJAX request to the server, and update a portion of the page or the entire page based on the response received.

The apex:dataList component is used to display a list of records and is not related to sending AJAX requests to the server.

The apex:inlineEditSupport component is used to enable inline editing of records displayed on a page and is also not related to sending AJAX requests to the server.

The apex:image component is used to display an image on a Visualforce page and is not related to sending AJAX requests to the server.

It is important to note that the apex:actionPoller component should be used with caution when working with enhanced lists. Enhanced lists are a feature that provides improved list views for Salesforce records, and using an apex:actionPoller can cause issues with the enhanced list functionality. Therefore, it is recommended to avoid using apex:actionPoller with enhanced lists.