[CLOSED] How can i set the timeout to a store in a user control?

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] How can i set the timeout to a store in a user control?

    How can i set the timeout to a store in a user control?
    probe with this code:
    <script type="text/javascript">
             Ext.Ajax.timeout = 120000;
             Ext.net.DirectEvent.timeout = 120000; 
    </script>

    but did not work 30 seconds after connection failure message is shown
    thanks
    Last edited by Daniil; May 21, 2013 at 3:41 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Can you provide test case to reproduce? Do you load UserControl in another Frame or to the same page?
  3. #3
    Hi,

    You can also ensure the code is executed.
    <script type="text/javascript">
        alert("I am here.");
        Ext.Ajax.timeout = 120000;
        Ext.net.DirectEvent.timeout = 120000;
    </script>
  4. #4
    Quote Originally Posted by Daniil View Post
    Hi,

    You can also ensure the code is executed.
    <script type="text/javascript">
        alert("I am here.");
        Ext.Ajax.timeout = 120000;
        Ext.net.DirectEvent.timeout = 120000;
    </script>



    is in the same page and the alert is working what can i try ?
  5. #5
    In addition:
    Ext.Ajax.timeout = 3600000;
    Ext.override(Ext.form.Basic, { timeout: Ext.Ajax.timeout / 1000 });
    Ext.override(Ext.data.proxy.Server, { timeout: Ext.Ajax.timeout });
    Ext.override(Ext.data.Connection, { timeout: Ext.Ajax.timeout });
  6. #6
    Yes, setting a timeout for a Ext.data.proxy.Server should help in your case. If it doesn't, please provide a test case.

    Raphael, thank you for the contribution!
  7. #7
    Going further:

    Store str = new Store();
    AjaxProxy ajxProxy = new AjaxProxy
    {
        Timeout = 3600000
    };
    str.Proxy.Add(ajxProxy);
  8. #8
    Quote Originally Posted by Daniil View Post
    Raphael, thank you for the contribution!
    You're welcome
  9. #9
    Quote Originally Posted by Daniil View Post
    Yes, setting a timeout for a Ext.data.proxy.Server should help in your case. If it doesn't, please provide a test case.

    Raphael, thank you for the contribution!
    I tested with

    <head id="Head1" runat="server" >
            <script type="text/javascript">
             Ext.net.DirectEvent.timeout = 120000;
             Ext.Ajax.timeout = 3600000;
             Ext.override(Ext.form.Basic, { timeout: Ext.Ajax.timeout / 1000 });
             Ext.override(Ext.data.proxy.Server, { timeout: Ext.Ajax.timeout });
             Ext.override(Ext.data.Connection, { timeout: Ext.Ajax.timeout });
    </script>
    </head>
    but does not work after 30 seconds the message appears some other option??
    Last edited by Daniil; May 13, 2013 at 5:03 AM. Reason: Please use [CODE] tags
  10. #10
    Please post a complete (but simplified) code sample demonstrating how to reproduce the issue.
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: May 09, 2013, 3:41 PM
  2. Replies: 2
    Last Post: Feb 06, 2012, 9:06 AM
  3. [CLOSED] Store.reload() not being called in user control
    By IT1333 in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Jun 14, 2011, 9:02 PM
  4. how to upload user control dynamicaly on user control
    By archana mahadule in forum 1.x Help
    Replies: 1
    Last Post: Jan 13, 2011, 12:05 PM
  5. Problem with store and user control
    By pierusch in forum 1.x Help
    Replies: 0
    Last Post: Jun 04, 2010, 10:14 PM

Posting Permissions