Print this page

AJAX API remoteFunction timeout parameter respected?

Knowledge Article Number 000176812
Description There is a method named remoteFunction in connection.js file which is used for AJAX calls.
Details could be found at:
http://www.salesforce.com/us/developer/docs/ajax/index_Left.htm#StartTopic=Content/sforce_api_ajax_queryresultiterator.htm#ajax_proxy

What ever value is passed for the timeout parameter, the function has no effect.

Is the timeout parameter in remoteFunction configurable?
Resolution No, the remoteFunction's timeout parameter is not configurable.

When the conenction.js file is studied, we can see that the file does not have any handler for timeout argument.

The remoteFunction can be called as (bold text represent the parameters):
sforce.connection.remoteFunction({
                   url : "http://www.myExternalServer.com",
                   onSuccess : function(response) {
                          alert("result" + response);
                      }
               });

remoteFunction descritpion can be checked at:
../soap/ajax/27.0/connection.js 
As per instance:
https://na1.salesforce.com/soap/ajax/27.0/connection.js 
https://ap1.salesforce.com/soap/ajax/27.0/connection.js 
https://cs1.salesforce.com/soap/ajax/27.0/connection.js 

The remoteFunction do not have any parameter handler for timeout argument.




promote demote