You need to sign in to do that
Don't have an account?
Lukesh Karmore
when to use Apex:ActionFunction
Hello forum,
I want to know when to use Apex:ActionFunction .
we call the controller method from javascript function using ActionFunction . I read this line in many blogs but why i call controller method from javascript function, when actually i need it .
can any one explain me thank you in advance.
I want to know when to use Apex:ActionFunction .
we call the controller method from javascript function using ActionFunction . I read this line in many blogs but why i call controller method from javascript function, when actually i need it .
can any one explain me thank you in advance.
Apex controller. With the help of actionfunction we can able to make a call to the apex controller class Check other blog post link which might be helpful for you
http://sfdcsrini.blogspot.com/2014/07/visualforce-action-function-example.html
http://www.salesforcetutorial.com/actionfunction-tag/
>> https://developer.salesforce.com/forums/?id=906F0000000BTIPIA4
The above link has an example regarding how to use apex:actionfunction and an implementation.
A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX request. An <apex:actionFunction> component must be a child of an <apex:form> component.
In the above visualforce page javascript method in the onclickevent will call the apex controller method with the help of actionfunction.
Apex controller. With the help of actionfunction we can able to make a call to the apex controller class
Check other blog post link which might be helpful for you
http://sfdcsrini.blogspot.com/2014/07/visualforce-action-function-example.html
http://www.salesforcetutorial.com/actionfunction-tag/
Let me know if it helps you and close your query by marking it as the best answer so that it can help others in the future.
Thanks.