Results 1 to 2 of 2

Thread: Load external html not scrolling in iPhone

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default Load external html not scrolling in iPhone

    Hi...

    When i open an external web page using iframe tag it scrolls fine in normal browser (desktop browser). But when I open it in iPhone mobile Safari scrolling doesn't work. Here's my code:


    CODE FOR Xtemplate:

    Code:
    var prodtemplate = new Ext.XTemplate(
    
    
     '<iframe src="{purl}{pcode}" height="100%" width="100%" frameborder="0" scrolling="yes"><p>Your browser doesnt support iframes</p></iframe>'
    
    
    );
    Code:
    var prodPaneldetailed = new Ext.Panel({
        
        id:'prodcutDetails',
        fulscreen:true,
        cls : 'myPanelBackground',
        tpl:prodtemplate,
        layout:'fit',
      });

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    Interactions within an iframe will not work. You should use an ajax call and update the panel's html.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •