Activity Forums Salesforce® Discussions What is Remote Action in Salesforce/What is the use of this action? Reply To: What is Remote Action in Salesforce/What is the use of this action?

  • Kumar

    Member
    January 11, 2017 at 9:47 am

    Hi Sushant,

    JavaScript remoting in Visualforce provides support for some methods in Apex controllers to be called via JavaScript.

    JavaScript remoting has three parts:
    1. The remote method invocation you add to the Visualforce page, written in JavaScript.
    2. The remote method definition in your Apex controller class. This method definition is written in Apex, but there are   few differences from normal action methods.
    3.The response handler callback function you add to or include in your Visualforce page, written in JavaScript.

    For more info on why we use Javascript remoting, refer to this blog.

    Hope this helps.