[CLOSED] Button AjaxEvents Timeout

  1. #1

    [CLOSED] Button AjaxEvents Timeout

    Hi,

    We are used to timeout property in button control when upload the file process. The following source are used to define timeout property

     
    <input type="file" id="inputFile" name="inputFile" style="width: 420px;" class="manitatory"
                                            runat="server" />
     
     
    <ext:Button ID="btn_AttachmentOk" runat="server" Width="120px" Text="Ok" MinWidth="70px"
                                        IconCls="ok1">
                                        <AjaxEvents>
                                            <Click OnEvent="AttachmentOk_Click" Failure="ShowFail();" ShowWarningOnFailure="true"
                                                Timeout="120000" Success="if (#{hidAttachSuccess}.getValue()=='true'){ #{WindowAttachment}.hide()} else {ShowError();}">
                                            </Click>
                                        </AjaxEvents>
                                    </ext:Button>
    Here we defined 2 minutes (120000) for timeout property. If the user can upload large volume of file to exceed 2 minutes then we will show failure alert.
    But failure alert can not show.

    I want to show failure alert if upload process is timeout. Here how it is working timeout or can i define timeout method in different process?

    Please reply asap
    Last edited by Daniil; Mar 21, 2011 at 7:14 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You cannot use Timeout with file uploading because there is no ajax request (ajax request cannot transfer a file)
    We use hidden iframe to submit a file without base page reloading

Similar Threads

  1. [CLOSED] How to call Java script function from AjaxEvents button click
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 01, 2012, 9:56 AM
  2. [CLOSED] timeout
    By ilanga in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Jan 19, 2012, 9:04 AM
  3. [CLOSED] Button CLICK directevent & listener timeout
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 05, 2011, 10:10 PM
  4. [CLOSED] Timeout
    By sharif in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 02, 2010, 11:59 AM
  5. [CLOSED] Dynamic Button with AjaxEvents
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 27, 2009, 6:53 PM

Tags for this Thread

Posting Permissions