Word wrap problem with Firefox

Last post 10-17-2009, 11:01 PM by cutechat. 3 replies.
Sort Posts: Previous Next
  •  10-13-2009, 6:31 AM 56367

    Word wrap problem with Firefox

    If i try to upload a file with a really long filename it does not wrap in firefox. It works fine with IE7/8 and safari.
    I placed the control in a modal popup.
     
    here is the html markup for the upload control.
     
              <div style="width:100%; overflow:hidden; word-break: break-all; white-space: pre-wrap;">
                    <CuteWebUI:Uploader runat="server" ID="uploader" InsertText="Upload File"                                                              
                        OnFileUploaded="upload_FileUploaded" UploadType="IFrame"
                        AutoUseSystemTempFolder="False">
                    </CuteWebUI:Uploader>
               </div>
     
     
  •  10-13-2009, 12:32 PM 56378 in reply to 56367

    Re: Word wrap problem with Firefox

    Your css code works for IE only.
     
    {word-wrap:;} is an IE proprietary property, and not a part of css.

    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

  •  10-13-2009, 11:00 PM 56381 in reply to 56378

    Re: Word wrap problem with Firefox

    is there a way to do it for firefox?
  •  10-17-2009, 11:01 PM 56462 in reply to 56381

    Re: Word wrap problem with Firefox

    Hi,
     
    You can use this javascript event to return the progress text :
     
    function CuteWebUI_AjaxUploader_OnProgress(reversed, filename, timestart, uploadedsize, contentlength)
    {
     return "myinfo - "+filename;
    }
    in this function , you can check the timestart (from new Date().getTime) , uploadedsize, contentlength to calculate the progress .
     
    (Note : the uploadedsize,contentlength maybe null)
     
    Regards,
    Terry
View as RSS news feed in XML