Turn off Silverlight in CuteWebUI.AjaxUploader

Last post 06-03-2011, 5:35 AM by velnias2008. 7 replies.
Sort Posts: Previous Next
  •  05-30-2011, 8:34 AM 67724

    Turn off Silverlight in CuteWebUI.AjaxUploader

    Hey I am using the CuteWebUI AjaxUploader which works great but we have seen for certain users using IE7 the first time they use the uploader they are prompted to install Silverlight, and they are saying that even after installing Silverlight they are prompted again to install.
     
    1) Is silverlight required ?
    2) Can it be switched off ?
     
    Thanks in advance
    Steven
  •  05-30-2011, 10:03 AM 67725 in reply to 67724

    Re: Turn off Silverlight in CuteWebUI.AjaxUploader

    Dear velnias2008,
     
    We integrate Ajax uploader into Cute Editor. Ajax Uploader allows you to select and upload multiple files at once.
     
    1. If Ajax Uploader detects SilverLight is installed on your PC, It will use the SilverLight solution.
    2. If Ajax Uploader detects Flash is installed on your PC, It will use the Flash solution.
    3. If Ajax Uploader detects Iframe is supported on your Browser, It will use the Iframe solution.
    4. Ajax Uploader will render as default ASP.NET upload control. 
     
    How to turn off the silverlight solution?
    Please follow steps:
    1.
    Search "<ce:uploader" in your project which contains CuteEditor for .NET, you can find the following files using CuteEditor:
    InsertDocument.aspx (2 matches)
    InsertFlash.aspx (2 matches)
    InsertGallery.aspx (2 matches)
    InsertImage.aspx (2 matches)
    InsertMedia.aspx (2 matches)
    InsertTemplate.aspx (2 matches)
    SelectFile.aspx (2 matches)
    SelectImage.aspx (2 matches)
     
    Open these files, you can find method:
     
       override protected void OnInit(EventArgs args) 
     
    Add the following line in this method:
     
    InputFile.SetAdvancedOption(UploaderAdvancedOption.NoSilverlight, "true");  
     
    CuteEditor will turn off the silverlight mode.
     
    We don't advise you turn off the silverlight solution, you can let that customer test our online demo http://cutesoft.net/example/general.aspx , check whether that customer will have same issue in our online demo. 
     
    Thanks for asking
  •  05-30-2011, 10:09 AM 67726 in reply to 67725

    Re: Turn off Silverlight in CuteWebUI.AjaxUploader

    Hey Eric,
     
    Thank you for your response, helps a lot.
     
    Another question for you, I actually don't need multiple file upload its a single file upload i am building. So I guess turning off Silverlight isn't a big issue ?
     
    Also how can I turn off multiple file upload ?
  •  05-30-2011, 10:48 AM 67727 in reply to 67726

    Re: Turn off Silverlight in CuteWebUI.AjaxUploader

    Dear velnias2008,
     
    Yes, turning  off the Silverlight is not a big issue for you.
    Search the following line in your project:
     
    <ce:uploader id="InputFile" runat="server"></ce:uploader>
     
    Change it to
     
    <ce:uploader id="InputFile" MultipleFilesUpload=false runat="server"></ce:uploader>
     
    It will disable the multiple files upload in CuteEditor for .NET
     
    Thanks for asking
     
  •  05-31-2011, 6:09 AM 67743 in reply to 67727

    Re: Turn off Silverlight in CuteWebUI.AjaxUploader

    Hey Eric,
     
    Great thanks for that, works great one last final question.
     
    When uploading the file is it possible to hide the 
    InsertButtonID="UploadButton" upload button ? I know at the moment nothing happens when clicking on it, but would be nice to hide it.
     
    Thanks
  •  05-31-2011, 9:07 PM 67753 in reply to 67743

    Re: Turn off Silverlight in CuteWebUI.AjaxUploader

    Hi velnias2008,
     
    Add the code below into the dialog page. It iwll hide the upload button  when uploading.
     
    Forexample "CuteSoft_Client\CuteEditor\Dialogs\InsertDocument.aspx"
     
      <script>

    function CuteEditor_AjaxUploader_OnStart()
    {
        var hidden=this;
        hidden.internalobject.insertBtn.style.display='none';
    }
    </script>
     
    Regards,
     
    Ken
  •  06-03-2011, 4:49 AM 67796 in reply to 67753

    Re: Turn off Silverlight in CuteWebUI.AjaxUploader

    Hey,
     
    Thanks a lot.
     
    Just one thing we noticed, when turning off silverlight we are getting an error in Chrome.
     
    prepairtem:0 error:
    Error #2038 at null
     
     
    Any idea ?
  •  06-03-2011, 5:35 AM 67797 in reply to 67796

    Re: Turn off Silverlight in CuteWebUI.AjaxUploader

    Just to follow up I added the following
    UploadType="Iframe"
     
    and then seemed to got rid of the error but now in Chrome only we get the error
     
    "Unknown Error..." not always but most of the time
View as RSS news feed in XML