This is a migrated thread and some comments may be shown as answers.

[Solved] Image Manager Browser issue

1 Answer 104 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 09 Oct 2009, 12:57 PM
Hi Telerik Team,

On a project we are working on for some reason we can't get the image manager in a RadEditor to upload images in I.E.

It works fine in Firefox, its accepting uploads and adding them into the file.  In I.E. the upload button is faded out (disabled).

The code that sets up the managers is shown below.

//set up the client folders  
            string[] DocMan = new string[] { "~/ClientResources/" + log.ClientID + "-" + log.Name + "/Docs/" };  
            string[] ImMan = new string[] { "~/ClientResources/" + log.ClientID + "-" + log.Name + "/Images/" };  
            string[] FlashMan = new string[] { "~/ClientResources/" + log.ClientID + "-" + log.Name + "/Flash/" };  
            string[] MediaMan = new string[] { "~/ClientResources/" + log.ClientID + "-" + log.Name + "/Media/" };  
 
 
            //create directorys if they dont exist  
            if (!Directory.Exists(Server.MapPath(DocMan[0])))  
            {  
                Directory.CreateDirectory(Server.MapPath(DocMan[0]));  
            }  
 
            if (!Directory.Exists(Server.MapPath(ImMan[0])))  
            {  
                Directory.CreateDirectory(Server.MapPath(ImMan[0]));  
            }  
 
            if (!Directory.Exists(Server.MapPath(FlashMan[0])))  
            {  
                Directory.CreateDirectory(Server.MapPath(FlashMan[0]));  
            }  
 
            if (!Directory.Exists(Server.MapPath(MediaMan[0])))  
            {  
                Directory.CreateDirectory(Server.MapPath(MediaMan[0]));  
            }  
 
            //set the directorys in the editor  
            RadEditor1.DocumentManager.ViewPaths = DocMan;  
            RadEditor1.FlashManager.ViewPaths = FlashMan;  
            RadEditor1.ImageManager.ViewPaths = ImMan;  
            RadEditor1.MediaManager.ViewPaths = MediaMan;  
            RadEditor1.DocumentManager.UploadPaths = DocMan;  
            RadEditor1.FlashManager.UploadPaths = FlashMan;  
            RadEditor1.ImageManager.UploadPaths = ImMan;  
            RadEditor1.MediaManager.UploadPaths = MediaMan;  
            RadEditor1.DocumentManager.DeletePaths = DocMan;  
            RadEditor1.FlashManager.DeletePaths = FlashMan;  
            RadEditor1.ImageManager.DeletePaths = ImMan;  
            RadEditor1.MediaManager.DeletePaths = MediaMan;  
 
            // endable the image editor  
            RadEditor1.ImageManager.EnableImageEditor = true;  
 
            // Set the max uploads of the managers  
            RadEditor1.ImageManager.MaxUploadFileSize = 4194304;  
            RadEditor1.DocumentManager.MaxUploadFileSize = 4194304;  
            RadEditor1.MediaManager.MaxUploadFileSize = 10485760;  
            RadEditor1.FlashManager.MaxUploadFileSize = 4194304;  
 
            // Set the allowed file types  
            string[] DocPatterns = new string[] {"*.pdf"};  
            string[] ImgPatterns =  new string[] {"*.gif","*.png","*.jpg"};  
            string[] FlashPatterns =  new string[] {"*.swf"};  
            string[] MediaPatterns =  new string[] {"*.avi"};  
 
            RadEditor1.DocumentManager.SearchPatterns = DocPatterns;  
            RadEditor1.ImageManager.SearchPatterns = ImgPatterns;  
            RadEditor1.FlashManager.SearchPatterns = FlashPatterns;  
            RadEditor1.MediaManager.SearchPatterns = MediaPatterns;  
 
            //Load Styles Into Editor  
            RadEditor1.CssFiles.Clear();  
            RadEditor1.CssFiles.Add("~/ClientResources/global.css"); 

                    <telerik:RadEditor ID="RadEditor1" runat="server" Height="500px" Width="750px" Language="en-GB" 
                        ContentFilters="None">  
                        <Content> 
                        </Content> 
                    </telerik:RadEditor> 

We are getting a javascript error of:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; InfoPath.2; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Fri, 9 Oct 2009 12:55:08 UTC

Message: Object doesn't support this property or method
Line: 43
Char: 1
Code: 0
URI: http://www.imagered.co.uk/iradmin/ScriptResource.axd?d=zVUi-h_5pZ9qabijiqORhifjZOicXN2SuUtcfdQeurd2fgZYD_nF4gzzuWoaEmC7EKgAAkRkokeYMDDs1ryEzfnVb8yFwDt2bdlZ6mfwBgk1&t=ffffffff8baae12e

Message: 'Telerik.Web.UI.FormDecoratorDecoratedControls.Default' is null or not an object
Line: 29
Char: 1
Code: 0
URI: http://www.imagered.co.uk/iradmin/ScriptResource.axd?d=zVUi-h_5pZ9qabijiqORhifjZOicXN2SuUtcfdQeurd2fgZYD_nF4gzzuWoaEmC7EKgAAkRkokeYMDDs1ryEzfnVb8yFwDt2bdlZ6mfwBgk1&t=ffffffff8baae12e

 

We are not getting any errors in Firefox.

any idea why it would be working in Firefox and not I.E?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Oct 2009, 01:27 PM
Hi Ian,

I believe that you are using an older version of RadControls for ASP.NET AJAX that does not offer support for Internet Explorer 8.

The problem has been fixed in  Q1 2009 SP1 (version 2009.1.402) of the RadControls for ASP.NET AJAX. You need to update your project with a more recent build - the current official build is 2009.2.826.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Ian
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or