19th Mar 2007

Setting an AJAX timeout longer than 30 seconds in Prado

In Prado if you have an AJAX call that will take longer than 30 seconds (the default) you will need to change the request timeout here is an example of how to do that.

In your .page file

<!-- Search Input text field -->
<com:tactivetextbox id="search_input"></com:tactivetextbox></code>

<!– Search button –>
<com:tactivebutton text=”Search” oncallback=”searchCallback” activecontrol.callbackoptions=”options”></com:tactivebutton>

<!– Search request options. We are setting the timeout to 60 seconds –>
<com:tcallbackoptions id=”options”></com:tcallbackoptions>

<prop:clientside.requesttimeout>60000</prop:clientside.requesttimeout>

</com:TCallbackOptions>

 
close Reblog this comment
blog comments powered by Disqus