Activity Forums Salesforce® Discussions Explain configuring javascript remoting requests in Salesforce.

  • madhulika shah

    Member
    August 23, 2018 at 6:25 am

    Hi Anjali,

    JavaScript remoting is a tool that front-end developers can use to make an AJAX request from a Visualforce page directly to an Apex controller. JavaScript remoting allows you to run asynchronous actions by decoupling the page from the controller and to perform tasks on the page without having to reload the entire page.
    In addition, JavaScript remoting can help alleviate view state issues while still executing in the context of the user viewing the page. JavaScript remoting is the most efficient way of calling the controller and passing data in from the page, because you can ensure that you’re passing only the data that you need each time that you make a call.

    Configure a remoting request by providing an object with configuration settings when you declare the remoting request.
    For example, the default configuration parameters look like this:

    { buffer: true, escape: true, timeout: 30000 }

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos