[CLOSED] Change the timeout globally

  1. #1

    [CLOSED] Change the timeout globally

    Last edited by Daniil; Jun 27, 2012 at 12:15 PM. Reason: [CLOSED]
  2. #2
    Hi,

    The following sets up the AJAX timeout golbally:
    Ext.Ajax.timeout = 120000;
    Ext.net.DirectEvent.timeout = 120000;
    You can just place that code into a page <head>.

    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.
  3. #3
    I have not understood what you mean "Store AJAX". Could you explain better?
  4. #4
    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
    Ext.Ajax.timeout = 120000;
    will be used.

    The same for the saving AJAX requests of the AjaxProxy.
  5. #5
    Understood, thank you Daniil, please mark it as closed.
  6. #6
    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? :
    Ext.Ajax.timeout = 120000;
    Ext.net.DirectEvent.timeout = 120000;
    Could you give a quick code sample of how to implement this code? Please assist, thanks...
  7. #7
    It is JavaScript. It should be put into a page's <head> wrapped in a <script> tag.
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    
        <script type="text/javascript">
            Ext.Ajax.timeout = 120000;
            Ext.net.DirectEvent.timeout = 120000;
        </script>
    </head>
  8. #8
    We added the AjaxTimeout global property.
    http://forums.ext.net/showthread.php...l=1#post124634

Similar Threads

  1. [CLOSED] FieldLabel separator globally
    By RCM in forum 1.x Premium Help
    Replies: 2
    Last Post: Jul 25, 2012, 7:04 PM
  2. Ext.NET Post-back event handled globally
    By Nhím Hổ Báo in forum 1.x Help
    Replies: 3
    Last Post: Dec 31, 2011, 7:32 AM
  3. [CLOSED] How to change font globally across everything?
    By jchau in forum 1.x Premium Help
    Replies: 3
    Last Post: Nov 22, 2011, 3:11 PM
  4. Setting AjaxEventConfig's Timeout Globally
    By thedarklord in forum 1.x Help
    Replies: 0
    Last Post: Jul 05, 2009, 11:20 AM
  5. Replies: 2
    Last Post: Jun 30, 2009, 5:03 PM

Tags for this Thread

Posting Permissions