1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    0
    Superhoc is on a distinguished road

      0  

    Default Unanswered: Problem with external pages in app - Search for many hours

    Unanswered: Problem with external pages in app - Search for many hours


    Hello, I built a webapp, and for links to any external pages, I have them open in a new window, which works great. When I packaged it as an app and tested it on my ipod touch, it does not open in a new window. It opens the external page right in the app. In doing so, there is no way to go back to the actual app. The header with navigation is gone.

    What I would like to do is have my header stay and have the external page load under the header. I searched for hours and have not found a good solution. Some solutions were to use iframes, but that does not work well at all, because you cannot scroll the page. Other solutions were to use Ajax.Request, but that only works for pages on the same domain. I need external pages on other domains to load in. For instance, Google Maps, Facebook, Twitter, YouTube, Google +, pages on our main site, etc...

    I'm sure there is a way to do this, right?

    Any help with a solution would be appreciated.

    Thanks,
    John

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    872
    Answers
    3566
    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


    It's up to the native packager to allow opening links in the native browser.

    And you are correct, you will loose interactions like scroll if you use an iframe. I have seen some people add an iframe to the document.body and size Ext.Viewport to a small height. I haven't seen if that allows for scrolling though.
    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
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    108
    Vote Rating
    1
    Answers
    4
    paulh1971 is on a distinguished road

      0  

    Default


    Mitchell.

    I was looking in the App Gallery and found an App Store app that shows a list of social media sites. You click one of them and the social media site slides up and so does a bar with a Done button. When you click the Done button the social media and bar slide back down and you see the list again. Since that was done with Sencha Touch, somebody has to have an answer to how to do this. Do you have any idea?

    Thanks

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    0
    Superhoc is on a distinguished road

      0  

    Default


    Hi Mitchell,

    What do you mean by, It's up to the native packager to allow opening links in the native browser. Is this a setting you can make in the native packager?

    Thanks,
    John