Difference between JavaScript Remoting and
The <apex:actionFunction> component also lets you call controller action methods through JavaScript. In general, <apex:actionFunction> is easier to use and requires less code, while JavaScript remoting offers more flexibility. Here ....