1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    3
    Vote Rating
    0
    citiway is on a distinguished road

      0  

    Default Answered: iframe window closed when loading SSL site

    Answered: iframe window closed when loading SSL site


    Hi,

    I create a new iframe window when I load a URL:

    new Ext.Window({
    title : item.title,
    width : getViewSize(item, 'width'),
    height: getViewSize(item, 'height'),
    layout : 'fit',
    bodyStyle: 'background:#ffffff;',
    modal: true,
    draggable: false,
    items : [{
    xtype : 'component',
    id : 'iframe-win',
    autoEl : {
    tag : "iframe",
    src : item.href
    }
    }]
    }).show();

    It works well except when the URL is prefixed with https. The iframe window is closed and the page is loaded in parent window.

    I really couldn't figure out why is this happening. Does anyone know how to prevent it?

    Edit: I guess SSL content cannot be displayed in iframe?

    Thank you very much.

  2. I haven't heard of this issue. In which browser are you seeing this, and with which version of ExtJS?

    I have heard that placing an HTTPS iframe inside of an HTTP frame can present security issues since the URL is obscured from the user.

  3. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    4,081
    Vote Rating
    69
    Answers
    157
    Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about

      0  

    Default


    I haven't heard of this issue. In which browser are you seeing this, and with which version of ExtJS?

    I have heard that placing an HTTPS iframe inside of an HTTP frame can present security issues since the URL is obscured from the user.


    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager:
    sheryl@sencha.com

  4. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    3
    Vote Rating
    0
    citiway is on a distinguished road

      0  

    Default Thanks

    Thanks


    I have tested with Firefox, Chrome and Safari. The ExtJS version is 4.1

    Seems it should work in iframe. I think the best solution is not to open it in iframe since there are security issues.

    Thanks Gary.

Thread Participants: 1

Tags for this Thread