17 Jul 2012 7:01 AM #1
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.
19 Jul 2012 3:56 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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 Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.
19 Jul 2012 2:27 PM #3
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?
20 Jul 2012 10:05 AM #4
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?