Activity › Forums › Salesforce® Discussions › What are the different AJAX action tags in Salesforce?
Tagged: actionFunction, actionPoller, actionRegion, actionStatus, actionSupport, AJAX Action Tags, AJAX Request, Apex Controller, Javascript Code, Javascript Functions
-
What are the different AJAX action tags in Salesforce?
Posted by madhulika shah on August 27, 2018 at 1:28 PMWhat are the different AJAX action tags? What does each do?
shariq replied 7 years, 8 months ago 5 Members · 4 Replies -
4 Replies
-
Hello Madhulika,
The different AJAX action tags are:
actionStatus: used to display start and stop statuses of AJAX requests.
actionSupport: used to call a second component when an event happens to the first component.actionPoller: similar to actionSupport, but the event is based on a timer instead of a user action.
actionFunction: provides support for invoking a controller action from JavaScript code using an AJAX request by defining a new JavaScript function.
actionRegion: used to demarcate which parts of the page the server should reprocess.Thanks.
- [adinserter block='9']
-
Hi Madhulika,
Different AJAX Action tags are:
1.ActionFunction-It helps to call controller method from JavaScript using AJAX request.
2.ActionPoller-This component is used to set the timer in Visualforce. Based on time interval applied in the ActionPoller, an Asynchronous request will send to server.We must specify the interval, rerender id (component in the page to be reloaded),and action(controller method to be invoked) as attribute in ActionPollar.
3.ActionSupport-It adds AJAX support to another visualforce component and then call the controller method.
4.ActionRegion-This tag is used for a particular field or component which we don’t want to refresh or send to server on postback call.
5.ActionStatus:It is used to display start and stop statuses of AJAX requests.
-
These are the AJAX action tags that support the calling of action and refresh the field only not the entire Visualforce page.
1. <apex:actionFunction> – Provides support for invoking controller action methods directly from JavaScript code using an AJAX request. An component must be a child of an component.2. <apex:actionPollar> – A timer that sends an AJAX update request to the server according to a time interval that you specify. Update request can then result in a full or partial page update. You should avoid using this component with enhanced lists.
3.<apex:actionStatus> – A component that displays the status of an AJAX update request. An AJAX request can either be in progress or complete
Thanks.
-
Hi,
There are main difference between these tag:
apex:actionFunction – action function used to call the server side method using JavaScript
apex:actionStatus – actionStatus visualforce component displays the status of an AJAX update request. An AJAX request can either be in progress or complete.
apex:actionPoller– action poller used to call the server side method in a regular interval of timeHope this helps.
Log In to reply.