Problem style="display:none"

Last post 03-05-2009, 1:57 PM by juantes. 14 replies.
Sort Posts: Previous Next
  •  02-24-2009, 5:29 AM 49157

    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.
  •  02-24-2009, 6:30 AM 49159 in reply to 49157

    Re: Problem style="display:none"

    Hi,
     
    the input button would cause postback.
     
    so you need to this thing:
     
    onclick="FileUpload();return false;"
     
    Regards,
    Terry
  •  02-24-2009, 7:37 AM 49164 in reply to 49159

    Re: Problem style="display:none"

    Hello Terry,

    Thank you for the answer. I carried out the change in the code but it continues without working.
    I remind you, this only happens in chrome or safari.
     
    Some other idea?

    thanks.
  •  02-24-2009, 11:54 AM 49171 in reply to 49164

    Re: Problem style="display:none"

    do you have some idea on this problem?
     
    Juan
  •  02-26-2009, 10:09 PM 49304 in reply to 49171

    Re: Problem style="display:none"

    Juan,
     
    I am checking the reason.
     
    Regards,
    Terry
  •  02-27-2009, 12:55 PM 49335 in reply to 49304

    Re: Problem style="display:none"

    ok, I wait the answer.
     
    Regards,
     
    Juan
  •  03-02-2009, 8:52 AM 49389 in reply to 49335

    Re: Problem style="display:none"

    do you have some idea on this problem?
     
    Juan
  •  03-02-2009, 9:25 AM 49391 in reply to 49389

    Re: Problem style="display:none"

    Juan,
     
    We are investigating this issue and will get back to you as soon as possible.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-03-2009, 10:44 AM 49433 in reply to 49391

    Re: Problem style="display:none"

    Hi,

    Sorry for my insistence, but I need the urgent solution!
    do you have some solution?
  •  03-03-2009, 10:36 PM 49457 in reply to 49433

    Re: Problem style="display:none"

    Hi,
     
    We have checked that is a flash issue.
    the flash object can't not be loaded in that condition.
    We will fix it as soon as possible.
     
    Regards,
    Terry
  •  03-03-2009, 11:11 PM 49459 in reply to 49157

    Re: Problem style="display:none"

    Hi ,
     
    This issue have been fixed.  We will provide a new file to be downloaded tomorrow.
     
    Regards,
    Terry
  •  03-05-2009, 6:39 AM 49488 in reply to 49459

    Re: Problem style="display:none"

    In Safari and Chrome, I try the new version, when I execute it the first time it works well...
    Now when I want to go up another file the button browse files it is disabled!!!
    please I need solution.

    I send them the example code,
     
    ------------------------------

    html>

    <head runat="server">

      <title></title>

      <script>

        function FileUpload(){

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

        }

     

        function CerrarFileUpload(){

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

        }

       

            function submitbutton_click()

            {

                  var submitbutton=document.getElementById('<%=SubmitButton.ClientID %>');

                  var uploadobj=document.getElementById('<%= UploadAttachments1.ClientID %>');

                  if(!window.filesuploaded)

                  {

                        if(uploadobj.getqueuecount()>0)

                        {

                              uploadobj.startupload();

                        }

                        else

                        {

                              var uploadedcount=parseInt(submitbutton.getAttribute("itemcount"))||0;

                              if(uploadedcount>0)

                              {

                                   return true;

                              }

                              alert("Select a file!.");

                        }

                        return false;

                  }

                  window.filesuploaded=false;

                  return true;

            }

       

      </script>

     

    </head>

    <body>

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

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

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

          <ContentTemplate>

            <input id="Upload" type="button" onclick="BLOCKED SCRIPTFileUpload();return false;"

              name="Upload" value="Open Window" />

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

              <CuteWebUI:UploadAttachments runat="server" ID="UploadAttachments1" InsertText="Select a file"

                CancelText="Cancel" MultipleFilesUpload="true" ShowRemoveButtons="false" ShowCheckBoxes="false"

                CancelAllMsg="Cancel all" ProgressPanelWidth="200" ShowTableHeader="False" ProgressInfoStyle="padding-left:3px;font:normal 10px Tahoma;"

                ShowFileIcons="False" ItemTextTemplate="" ManualStartUpload="true">

                <ValidateOption MaxSizeKB="2097150" />

              </CuteWebUI:UploadAttachments>

              <asp:Button runat="server" ID="SubmitButton" OnClientClick="return submitbutton_click()"

                Text="Upload" />

            </div>

          </ContentTemplate>

        </asp:UpdatePanel>

      </form>

    </body>

    </html>

     

    ------------------------
     
    Regards,
     
    Juan
  •  03-05-2009, 10:41 AM 49499 in reply to 49157

    Re: Problem style="display:none"

    Hi,
     
    We just tested.
     
    It seems that the Flash object in Safari stop works. We need work deeply on this issue.
     
    Regards,
    Terry
     
  •  03-05-2009, 12:17 PM 49515 in reply to 49157

    Re: Problem style="display:none"

    Hi,
     
    We have fixed it, please try again.
     
    Regards,
    Terry
     
  •  03-05-2009, 1:57 PM 49519 in reply to 49515

    Re: Problem style="display:none"

     
    Terry,
     
    ok. the problem was solved! it works well..
     
    Thanks!!
    Juan
View as RSS news feed in XML