1. #1
    Touch Premium Member
    Join Date
    Mar 2011
    Posts
    3
    Vote Rating
    0
    bigbasher is on a distinguished road

      0  

    Default Unanswered: iFrame behaves differently on home screen

    Unanswered: iFrame behaves differently on home screen


    I have an app with an iframe. The iframe is used because I send the user to a cashier and the journey then moves away to other pages dependent on the payment option.

    The iframe works fine and stays within my app when run from safari on the iphone. But if I run the same code from a link on the home screen (where it behaves more like an app) a link within the iframe opens a new safari window and does not carry any of the cookies so the user is essentially logged out.

    Code for the panel is as follows:

    Code:
    Ext.define('mobile.view.iframePanelDyn', {    extend: 'Ext.Component',
        xtype: 'iframepaneldyn',
    
    
        config: {
            listeners: {
               loadpage: function(page) {
                    this.element.setHtml('');
                    Ext.DomHelper.append(this.element, {
                        tag: 'div',
                        style: 'width: 100%; height:100%; overflow:auto; -webkit-overflow-scrolling : touch; scrolling: no;',
                        children: [{
                            tag: 'iframe',
                            src: mobile.config.Config.getUrlPage()+page,
                            id: this.id + '-iframe',
                            style: 'width: 100%; height:100%; overflow:auto; -webkit-overflow-scrolling : touch; '
                        }]
                    });
                },
            },
        },
    });
    loaded when the user goes to the tab like this:
    Code:
                        Ext.getCmp('cashieriframe').fireEvent('loadpage','cashieroptions');

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,073
    Answers
    3500
    Vote Rating
    853
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This does not sound like a Sencha Touch question at all.

    What sounds like what is happening is that iframe is using window.open. Sencha Touch is not doing this.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Touch Premium Member
    Join Date
    Mar 2011
    Posts
    3
    Vote Rating
    0
    bigbasher is on a distinguished road

      0  

    Default The iFrame is presenting a standard HREF

    The iFrame is presenting a standard HREF


    I can confirm that the iFrame is returning a standard href - here is the code as seen in Chrome in a browser. It works perfectly when the app is run from a safari window. But not when run from the "Home Screen"

    Code:
    <li>
    <a href="index.php?page=deposit&type=1&content=1">
    <img style="border: 0px;" src="//xxxx.com/scontent/images/payment/cards_logo.png" alt="Credit/Debit Card" /><br /><br />Credit/Debit Card </a>
    </li>

  4. #4
    Touch Premium Member
    Join Date
    Mar 2011
    Posts
    3
    Vote Rating
    0
    bigbasher is on a distinguished road

      0  

    Exclamation This bug is still there

    This bug is still there


    Is there any way I can get an answer for this? I can provide a URL where the behaviour can be seen privately.

Thread Participants: 1

Tags for this Thread