Newer Version Available

This content describes an older version of this product. View Latest

remoteFunction Syntax and Parameters Syntax and Parameters

AJAX proxy uses remoteFunction to proxy calls.

The remoteFunction syntax and parameters:

1sforce.connection.remoteFunction({ 
2url : endpoint_url, 
3onSuccess : callback_method 
4onFailure : error_callback 
5method : http_method 
6mimeType : "text/plain" | "text/xml" 
7async : true | false 
8requestHeaders : http_headers 
9requestData : http_post_data 
10cache : true | false 
11timeout : client_side_timeout_in_ms 
12});

cache and timeout are available in version 10.0 and later.

Note