+ Start a Discussion
Deepu sfdcDeepu sfdc 

Hi , please give me real time examples of Action function and Action Support. Thanks in Advance

Best Answer chosen by Deepu sfdc
Amit Chaudhary 8Amit Chaudhary 8
1. difference is in case of Action function we invoke AJAX using Java script while in case of Action support we may directly
invoke method from controller
 
2. other difference is Action function may be commonly used from different place on page while action support may only be used for particular single apex component.

Please check below post for more information
1)http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html
2) http://blog.biswajeetsamal.com/post/2015/10/09/difference-between-action-function-and-action-support/

Action Function: Invoke the controller method from java script using AJAX and we can use action function from different places on visual force page.
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionFunction.htm

Action Support: 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.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionSupport.htm
 

All Answers

Amit Chaudhary 8Amit Chaudhary 8
1. difference is in case of Action function we invoke AJAX using Java script while in case of Action support we may directly
invoke method from controller
 
2. other difference is Action function may be commonly used from different place on page while action support may only be used for particular single apex component.

Please check below post for more information
1)http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html
2) http://blog.biswajeetsamal.com/post/2015/10/09/difference-between-action-function-and-action-support/

Action Function: Invoke the controller method from java script using AJAX and we can use action function from different places on visual force page.
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionFunction.htm

Action Support: 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.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionSupport.htm
 
This was selected as the best answer
Newbie999Newbie999
So am I correct if I say using actionFunction, we can avoid the input required from user like mouseOver, onClick etc in case of actionSupport? The actions will be performed automatically during page load etc?