Activity Forums Salesforce® Discussions Explain some of Configuring javascript remoting requests in salesforce?

  • Explain some of Configuring javascript remoting requests in salesforce?

    Posted by Laveena on September 18, 2019 at 8:34 am

    Explain some of Configuring javascript remoting requests in salesforce?

    • This discussion was modified 4 years, 7 months ago by  Laveena.
    Saddam replied 4 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Saddam

    Member
    September 18, 2019 at 11:14 am

    Hi,

    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 }

    These configuration parameters aren’t ordered, and you can omit parameters you don’t want to change from the default.
    JavaScript remoting supports the following configuration parameters:

    Name
    Data Type
    Description
    buffer
    Boolean
    Whether to group requests executed close to each other in time into a single request. The default is true.JavaScript remoting optimizes requests that are executed close to each other in time and groups the calls into a single request. This buffering improve the efficiency of the overall request-and-response cycle, but sometimes it’s useful to ensure all requests execute independently.
    escape
    Boolean
    Whether to escape the Apex method’s response. The default is true.
    timeout
    Integer
    The timeout for the request, in milliseconds. The default is 30,000 (30 seconds). The maximum is 120,000 (120 seconds, or 2 minutes).

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos