function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GaneeeshGaneeesh 

What is the difference between javascript Remoting and Actionfunction...?

Can anybody help me What is the difference between javascript Remoting and Actionfunction...?

Rahul_sgRahul_sg
  • The <apex:actionFunction> tag:
    • lets you specify rerender targets
    • submits the form
    • does not require you to write any JavaScript
  • JavaScript remoting:
    • lets you pass parameters
    • provides a callback
    • requires you to write some JavaScript

In general, <apex:actionFunction> is easier to use and requires less code, while JavaScript remoting offers more flexibility.