Results 1 to 5 of 5

Thread: [CLOSED] Ext.form.HtmlEditor + HTTPS + IE 6 = "non-secure items" message ALWAYS

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jan 2008
    Posts
    3

    Default [CLOSED] Ext.form.HtmlEditor + HTTPS + IE 6 = "non-secure items" message ALWAYS

    When a page with a HtmlEditor panel is opened in Internet Explorer 6, the message "This page contains both secure and non-secure items. Do you want to download the non-secure items?" is always shown.

    I tried some of the solutions proposed at the forums, f. ex., setting values to Ext.BLANK_IMAGE_URL and/or Ext.SSL_SECURE_URL, but they didn't work. So I think It's a bug (although I'm not sure if Ext JS is still supporting IE 6).

    The message is shown when the object Ext.form.HtmlEditor is created, just when a no-source iframe is appended to the page (yes, it's actually an IE 6 bug). Here is the sourcecode section affected in ext-all.js:
    Code:
    createIFrame: function(){
            var iframe = document.createElement('iframe');
            iframe.name = Ext.id();
            iframe.frameBorder = '0';
            iframe.style.overflow = 'auto';
    
            this.wrap.dom.appendChild(iframe);
            this.iframe = iframe;
    
            this.monitorTask = Ext.TaskMgr.start({
                run: this.checkDesignMode,
                scope: this,
                interval:100
            });
    }
    To fix this in your apps, you just have to extend Ext.form.HtmlEditor and overwrite the method createIframe in order to initialize iframe.src:
    Code:
    MyHtmlEditor = Ext.extend(Ext.form.HtmlEditor, {
    	createIFrame: function(){
    		var iframe = document.createElement('iframe');
           	        iframe.name = Ext.id();
             	iframe.frameBorder = '0';
            	iframe.style.overflow = 'auto';
    
            	if(Ext.isIE6){
            		iframe.src='javascript:false';
             	}
    		 	      	            
       	        this.wrap.dom.appendChild(iframe);
             	this.iframe = iframe;
    
             	this.monitorTask = Ext.TaskMgr.start({
            		run: this.checkDesignMode,
                            scope: this,
                            interval:100
                    });
          	}
    });
    After that, you should use MyHtmlEditor instead of HtmlEditor, of course. I hope it'll help someone.

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661

    Default

    What version of Ext are you using, and have you tested this with the 3.3.x beta?

  3. #3
    Sencha User
    Join Date
    Jan 2008
    Posts
    3

    Default

    Quote Originally Posted by Jamie Avins View Post
    What version of Ext are you using, and have you tested this with the 3.3.x beta?
    Sorry for not specifying it before. I tested it with versions 3.1.1 and 3.2.1. Where can I download 3.3.x beta?

  4. #4

  5. #5
    Sencha User
    Join Date
    Jan 2008
    Posts
    3

    Default

    OK, you're right. It's fixed in version 3.3 beta. Thank you!

    Anyway, if someone is using previous versions, I hope my fix will help them.

Similar Threads

  1. (Solved - Not possible) Is an Ext.Ajax POST to https:// (SSL) Secure?
    By jasondeegan in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 27 Apr 2010, 6:11 AM
  2. Replies: 4
    Last Post: 19 Nov 2009, 7:40 PM
  3. Replies: 3
    Last Post: 14 Aug 2007, 12:52 AM
  4. IE - Secure/Unsecure Message on Date Picker
    By diablone in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 5 Apr 2007, 9:20 AM
  5. onDocumentReady in IE displays secure/nonsecure message
    By jt in forum Ext 1.x: Help & Discussion
    Replies: 13
    Last Post: 2 Feb 2007, 9:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •