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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    Interactions within an iframe will not work. You should use an ajax call and update the panel's html.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •