Printable View
Hi,
The following sets up the AJAX timeout golbally:
You can just place that code into a page <head>.Code:Ext.Ajax.timeout = 120000;
Ext.net.DirectEvent.timeout = 120000;
Regarding Store. The approach above will set up the timeout for the Store AJAX as well. To set up a custom timeout, please use the Timeout property of the AjaxProxy.
I have not understood what you mean "Store AJAX". Could you explain better?
Well, I meant any AJAX requests initiated by the Store/Proxy pair.
For example, if you set up the AjaxProxy with some Url, that proxy will initiate AJAX requests to load a data from the defined Url. AjaxProxy uses the Ext.Ajax. So, the following setting
will be used.Code:Ext.Ajax.timeout = 120000;
The same for the saving AJAX requests of the AjaxProxy.
Understood, thank you Daniil, please mark it as closed.
Hi : We are trying to implement the above settings in the C# code behind (Ext.Net 2.x) but getting the following errors:
http://screencast.com/t/tdmlrKYwO
http://screencast.com/t/uN9BzlK0
We also have include code: using Ext.Net;
What are we missing? We tried in the markup <head>, but also got errors. Where exactly does this code go? :
Could you give a quick code sample of how to implement this code? Please assist, thanks...Code:Ext.Ajax.timeout = 120000;
Ext.net.DirectEvent.timeout = 120000;
It is JavaScript. It should be put into a page's <head> wrapped in a <script> tag.
Code:<head runat="server">
<title>Ext.NET v2 Example</title>
<script type="text/javascript">
Ext.Ajax.timeout = 120000;
Ext.net.DirectEvent.timeout = 120000;
</script>
</head>
We added the AjaxTimeout global property.
http://forums.ext.net/showthread.php...l=1#post124634