Activity › Forums › Salesforce® Discussions › Explain ActionFunction, ActionSupport and ActionPoller in Salesforce Visualforce.
Tagged: AJAX Request, Apex ActionFunction, Apex ActionPoller, Apex ActionSupport, Javascript, Salesforce Visualforce, Visualforce Components
-
Explain ActionFunction, ActionSupport and ActionPoller in Salesforce Visualforce.
Posted by Aman on September 22, 2018 at 6:37 PMExplain ActionFunction, ActionSupport and ActionPoller in Salesforce Visualforce.
Parul replied 7 years, 7 months ago 3 Members · 2 Replies -
2 Replies
-
apex:ActionFunction: This component helps to envoke AJAX request (Call Controllers method) directly from Javascript method. It must be child of apex:form. Read here – http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionFunction.htm
apex:ActionSupport: This component adds Ajax request to any other Visualforce component. Example : Commandlink button has inbuilt AJAX functionality however few components like OutputPanel does not have inbuilt AJAX capabilities. So with the help of this component, we can enable AJAX. Read more here.
apex:ActionPoller: This is timer component which can send AJAX request on pre-defined interval. Minimum interval is 5 sec and default is 60 sec
- [adinserter block='9']
-
actionFunction: It is used to call the server side method using javaScript.
actionSupport: It is used to call the server based on the client side event i.e. like onclick, onchange etc.
actionPoller: It is used to call the server side method in a regular interval of time.
actionRegion: An area of a Visualforce page that demarcates which components should be processed by the Force.com server when an ajax request is generated.
Thanks
Log In to reply.