Uploader is not initialized when in a hidden div

Last post 03-06-2009, 2:10 PM by el.c.. 6 replies.
Sort Posts: Previous Next
  •  03-05-2009, 4:41 AM 49487

    Uploader is not initialized when in a hidden div

    Hi
     
    For ergonomy reasons, I need to put an uploader in a div hidden by CSS.
     
    <div id="zAddComment" style="display: none;">
       [..]
       <div id="zUploadForm" class="uploadForm" runat="server">
          <asp:ScriptManager ID="Scriptmanager1" runat="server" />
          <asp:UpdatePanel ID="UpdatePanel1" runat="server">
             <ContentTemplate>
               <asp:LinkButton id="bInsert" runat="server" />
               <CuteWebUI:UploadAttachments id="tDocUpload" InsertButtonID="bInsert" runat="server" />
             </ContentTemplate>
         </asp:UpdatePanel>
       </div>

    </div>

     
    If i remove the style="display: none;" everything works perfectly.
    If not, the upload is not initialized and clicking on the upload button does not  do anything at all.
     
    Any work-around?
     
    PS: I downloaded and installe d the new release but the problem is still here.

  •  03-05-2009, 10:30 AM 49496 in reply to 49487

    Re: Uploader is not initialized when in a hidden div

    Hi,
     
    What browser do you use ?
     
    Regards,
    Terry
  •  03-05-2009, 2:11 PM 49521 in reply to 49496

    Re: Uploader is not initialized when in a hidden div

    Firefox 3.0.6
  •  03-05-2009, 9:32 PM 49537 in reply to 49521

    Re: Uploader is not initialized when in a hidden div

    Hi,
     
    Can you test this ?
     
    <asp:LinkButton ID="bInsert" runat="server" Text="HelloWorld" />
     
    Regards,
    Terry
  •  03-06-2009, 9:15 AM 49557 in reply to 49537

    Re: Uploader is not initialized when in a hidden div

    Of course, it did not fix the problem. (the text prop was set in the code behind)
    Are you able to make the uploader run with a simple page like this one, with Firefox:
     
    <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
    <body>
    <form runat="server" id="mainForm">
            <a href="#" onclick="document.getElementById('zForm').style.display=''; return false;">show uploader</a>
            <br />
            <div id="zForm" style="display: none;">        
                <div id="zUploadForm" class="uploadForm" runat="server">
                        <CuteWebUI:UploadAttachments id="tDocUpload" runat="server" />
                        <br />
                        Hello world
                </div>
            </div>
    </form>
    </body>
    </html>
     
    Without the display: none, it works fine.
    With the display: none, the upload button is disabled.
     
    Please note the problem occurs with Firefox.
    Everything seems ok with IE.
     
    Looking forward to reading you

     
     
  •  03-06-2009, 10:15 AM 49565 in reply to 49557

    Re: Uploader is not initialized when in a hidden div

    I can't reproduce your error with FireFox+Flash.
     
    Can you download the control again ?
     
    We have updated it many times these days.
     
    Because this customer have similiar problem.
    http://cutesoft.net/forums/thread/49157.aspx
     
    Regards,
    Terry
     
  •  03-06-2009, 2:10 PM 49592 in reply to 49565

    Re: Uploader is not initialized when in a hidden div

    Weird. Still does not work.
     
    Firefox 3.0.7
    Flash 10.0.r12
    AjaxUploader: 2.0 20090306
     
    The same problem occurs with Safari 3.0.4
     
    Works with IE6, IE7, Chrome.
     
    Are you sure you have tested the sample i sent with Firefox???
View as RSS news feed in XML