Ajax uploader getting problem in firefox 3.0.14

Last post 09-26-2009, 8:47 AM by cutechat. 6 replies.
Sort Posts: Previous Next
  •  09-18-2009, 5:52 AM 55720

    Ajax uploader getting problem in firefox 3.0.14

    Hi,
     
     i'm using uploader control  to upload single files.it works fine in IE.Bt in FF it is displaying (one more textbox and buttin) when clicked on browse.when i clicked on new browse button then it works same way as the original button expected.
     
    This is my Code,Can you please give me solution as this is urgent for me.
     
     

    <label>

    Image:

    <asp:TextBox ID="txtLR" runat="server" ReadOnly="true" Width="245px" Height="12px"></asp:TextBox>

    <CuteWebUI:Uploader runat="server" ID="UploaderLR" InsertText="Browse..." OnFileUploaded="UploaderLR_FileUploaded"

    TempDirectory="~/UploaderTemp" InsertButtonStyle-Width="70px" InsertButtonStyle-Height="20px" >

    <ValidateOption AllowedFileExtensions="jpeg,jpg" />

    </CuteWebUI:Uploader>

    </label>

     
     
       Thanks,
       lakshmi.
     
     
     
  •  09-18-2009, 11:04 AM 55734 in reply to 55720

    Re: Ajax uploader getting problem in firefox 3.0.14

    lakPopuri,
     
  •  If Ajax Uploader detects SilverLight is installed on your browser, It will use the SilverLight solution.
  •  If Ajax Uploader detects Flash is installed on your browser, It will use the Flash solution.
  •  If Ajax Uploader detects Iframe is supported on your Browser, It will use the Iframe solution. 
  • In Iframe mode firefox requires the users click the button again, just like Gmail.


    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

  •  09-21-2009, 1:48 AM 55751 in reply to 55734

    Re: Ajax uploader getting problem in firefox 3.0.14

    Hi,
     
      ya right but in gmail its looking apt(clicking on link it shows textbox and button). In our  design already one button and txtbox will be there.So showing new one is a bit confusion to user is ther any work around for this?
     
     And in other versions of FF in first click itself it selects the file but on click of upload button its not finding tht  selected file.Can you pls help me is there any way for this to work properly.
     
    Thanks,
    lakshmi.
  •  09-21-2009, 4:02 AM 55755 in reply to 55734

    Re: Ajax uploader getting problem in firefox 3.0.14

    Hi,
     
      ya right but in gmail its looking apt(clicking on link it shows textbox and button). In our  design already one button and txtbox will be there.So showing new one is a bit confusion to user is ther any work around for this?
     
     And in other versions of FF in first click itself it selects the file but on click of upload button its not finding tht  selected file.Can you pls help me is there any way for this to work properly.
     
    And one more issue - we are getting the selected file name through arguments.IS there any way to find the complete path of  the selected file like   " E:\Projects\...\Filename.JPG"
     
    Thanks,
    lakshmi.
  •  09-24-2009, 11:02 AM 55848 in reply to 55755

    Re: Ajax uploader getting problem in firefox 3.0.14

    Lakshmi,
     
    Please check this sample:
     
     
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4.   
    5. <script runat="server">  
    6.     protected override void OnInit(EventArgs e)   
    7.     {   
    8.         base.OnPreRender(e);   
    9.   
    10.         tbnothing.Attributes["onclick"] = "document.getElementById('" + Uploader2.ClientID + "').startbrowse()";   
    11.     }   
    12.     public bool IsFireFox   
    13.     {   
    14.         get   
    15.         {   
    16.             string str = Request.UserAgent;   
    17.             if (str == null)   
    18.                 return false;   
    19.             return str.IndexOf("Firefox") != -1;   
    20.         }   
    21.     }   
    22. </script>  
    23.   
    24. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"   
    25.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    26. <html xmlns="http://www.w3.org/1999/xhtml">  
    27. <head runat="server">  
    28.     <title>Sample</title>  
    29. </head>  
    30. <body>  
    31.     <form id="form1" runat="server">  
    32.         <div>  
    33.             <%if (IsFireFox) %>  
    34.             <%{ %>  
    35.             <CuteWebUI:Uploader runat="server" ID="Uploader1" UploadType="IFrame" ShowFrameBrowseButton="True" />  
    36.             <%} %>  
    37.             <%else %>  
    38.             <%{ %>  
    39.             <asp:TextBox runat="server" ID="tbnothing" /><CuteWebUI:Uploader runat="server" ID="Uploader2"  
    40.                 UploadType="IFrame" InsertText="Browse" />  
    41.             <%} %>  
    42.         </div>  
    43.     </form>  
    44. </body>  
    45. </html>  

     
    Regards,
    Terry
     
  •  09-25-2009, 7:56 AM 55873 in reply to 55848

    Re: Ajax uploader getting problem in firefox 3.0.14

    Hi Terry,
     
     Thanks alot. Now it works fine in 3.0.14.But is there any way to change the text box style in FF.Cause its displays textbox with out border at bottom and i need a bit lengthy one.Will it be possible?
     
    Thanks,
    Lakshmi.
  •  09-26-2009, 8:47 AM 55891 in reply to 55873

    Re: Ajax uploader getting problem in firefox 3.0.14

    Lakshmi,
     
    Please check this sample :
     

     <script type="text/javascript">
     var uploader=document.getElementById('<%=Uploader1.ClientID %>');
     function CheckBrowsingTask()
     {
      var iobj=uploader.internalobject;
      var task=iobj._browsingtask;
      if(task==null)return;
      var file=task.file1;
      if(file==null)return;
      if(file.getAttribute("myinit")=="1")return;
      InitMyFileElement(file);
     }
     function InitMyFileElement(file)
     {
      file.setAttribute("myinit","1");
      file.style.backgroundColor="red";
      file.style.color="blue";//not works..
     }
     setInterval(CheckBrowsingTask,100);
     </script>
     
    This sample refer the internal implementation object,
    So it may stop work in future version (if we change that implementation)
     
    Regards,
    Terry
View as RSS news feed in XML