You need to sign in to do that
Don't have an account?
Jimmmy
Does anybody have any ideas or know of any work a rounds... Any help will be greatly appreacheated.
remoteFunction Timeout not working?!
We are using the remoteFunction and we have set a timeout but it still defaults to the 10 second timeout?
Here is the code we are using.
sforce.connection.remoteFunction({ url : url,
timeout : 60000,
method: "POST",
requestData: template,
async: false,
requestHeaders: { "Content-Type": "text/xml","SOAPAction": https://www.ourwebsite.com},
onSuccess : function(response) { message = response;},
onFailure : function(error) { alert(error); }});
timeout : 60000,
method: "POST",
requestData: template,
async: false,
requestHeaders: { "Content-Type": "text/xml","SOAPAction": https://www.ourwebsite.com},
onSuccess : function(response) { message = response;},
onFailure : function(error) { alert(error); }});
we pass in XML and retrieve XML as a response. It works great until we have a larger sized XML
being sent and then we run into issues. The server is receiving the data and the remoteFunction
is not paying attention to the timeout call. So we get
<html>
<head><title>400 Unable to forward request due to: Read timed out</title></head>
<body>
<h1>400 Unable to forward request due to: Read timed out</h1>
<p /><hr />
<small>
Resin-3.0.12 (built Wed, 23 Feb 2005 10:29:38 PST)
</small>
</body></html>
<head><title>400 Unable to forward request due to: Read timed out</title></head>
<body>
<h1>400 Unable to forward request due to: Read timed out</h1>
<p /><hr />
<small>
Resin-3.0.12 (built Wed, 23 Feb 2005 10:29:38 PST)
</small>
</body></html>
The AJAX doc I am looking at (Version 12.0) says on p. 33 that this property is valid.
If so, can we at least get the doc updated?
Thanks,
Bao-Long