Problem style="display:none"

  •  02-24-2009, 5:29 AM

    Problem style="display:none"

    Hi,

    We have the following problem. When adding the style "display:none" to Div that contains the component, this it doesn't work in the Safari and Chrome. 

    I sends the example code so that they can evaluate it easily.
    ------------------------------------------------------------------------------------------------

    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head runat="server">

    <title></title>

    <script>

    function FileUpload(){

    document.getElementById('DivFileUploadTest').style.display = '';

    }

    function CerrarFileUpload(){

    document.getElementById('DivFileUploadTest').style.display = 'none';

    }

    </script>

    </head>

    <body>

    <form id="form1" runat="server">

    <input id="Upload" type="button" onclick="BLOCKED SCRIPTFileUpload();" name="Upload" value="Open Window" />

    <asp:ScriptManager ID="ScriptManager1" runat="server" />

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

    <ContentTemplate>

    <div id="DivFileUploadTest" runat="server"  style="display:none;">

    <CuteWebUI:UploadAttachments runat="server" ID="Attachments1" InsertText="Seleziona i files">

    </CuteWebUI:UploadAttachments>

    </div>

    </ContentTemplate>

    </asp:UpdatePanel>

    </form>

    </body>

    </html>
     
    --------------------------------------------------------------------------------------------------------
     
    Thanks.
View Complete Thread