FireFox error from Uploader in an iFrame

Last post 12-20-2013, 5:41 PM by Phillip. 1 replies.
Sort Posts: Previous Next
  •  12-20-2013, 4:42 PM 78651

    FireFox error from Uploader in an iFrame

    We are using Asp.Net version 3.0.0.0 of teh CuteWebUI.AjaxUploader on several pages on our site.

    One page is loaded in an iFrame and displayed in a div styled like a modal dialog.

    The page that is loaded in the iFrame has a asp:DropDownList, and a few asp validators. The page works fine in all browsers except FireFox 25.0.1.

    When the iFrame/div is shown the uploader and page work perfectly, but when the div that contains the iFrame is hidden a JavaScript error pops up: "Error when initialize uploader : Ox19b.getComputedStyle(...) is null"

     

    FireFox represents a small portion of our users, so we are going to use this version, but would like to know what we can do to prevent the error.

    Below is the server tag for the page that causes the problem. 

     

    <CuteWebUI:Uploader      
          runat="server"     
          ID="uplDocuments"     
          InsertButtonID="imgUpload"     
          MaxFilesLimit="1"     
          MaxFilesLimitMsg="Please choose only one file to upload at a time."     
          MultipleFilesUpload="false"     
          ShowProgressBar="true"
        ShowProgressInfo="false" > 
       <ValidateOption AllowedFileExtensions="pdf,gif,jpg,jpeg,png,doc,docx,txt" /> 
    </CuteWebUI:Uploader>
     
  •  12-20-2013, 5:41 PM 78652 in reply to 78651

    Re: FireFox error from Uploader in an iFrame

    I discovered that if I added a timeout to the JavaScript code that closes the div after the PostBack that uploads the file the error goes away.

    I'm not sure what that means as far what is causing the error above . 

View as RSS news feed in XML