Activity › Forums › Salesforce® Discussions › What is the difference between actionFunction, actionSupport, actionRegion in Salesforce?
Tagged: actionFunction, actionRegion, Actions in Salesforce, actionSupport, AJAX Request, Controller Action Methods, Difference, Force.com, Javascript Code
-
What is the difference between actionFunction, actionSupport, actionRegion in Salesforce?
Posted by Prachi on August 1, 2018 at 7:48 AMWhat is the difference between actionFunction, actionSupport, actionRegion?
Aman replied 7 years, 7 months ago 3 Members · 2 Replies -
2 Replies
-
Hi Prachi,
<apex:actionFunction>
This component provides support for invoking controller action methods directly from JavaScript code using an AJAX request and we can use action function from different places on visual force page.<apex:actionSupport>
<apex:actionSupport/> Invoke the controller method using AJAX when event occurs on page like onMouseOver, onClick, etc. and we can use action support for particular single apex component.<apex:actionRegion>
An area of a Visualforce page that demarcates which components should be processed by the Force.com server when an AJAX request is made. Only the components in the body of the <apex:actionRegion> are processed by the server, thereby increasing the performance of the page - [adinserter block='9']
-
Hi,
Action function can call the controller method from javascript.
Action support adds AJAX support to another visual force component and then call the controller method.
Action region is one of the most important tags which helps in increasing page performance. So we should try to make maximum use of action region in visual force page.
Thanks
Log In to reply.