facebook

How to fit external webpage into a page in the app

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #319135 Reply

    cheapweb
    Member

    Hi Wayne

    On one of the pages in my app I have a link to a webpage, where people can make some bookings.

    Can I make that webpage appear in “normal iphone size” within the app, or am I forced out of the app to the external webpage? That is how it is now and there off course is now back-button as there are in my app.

    Tried to use “iframe” but was advised against it. What can/should I do?

    Best Regards

    Kim

    #319143

    support-michael
    Keymaster

    @cheapweb

    The main issue about navigating to a remote page is the lack of a back-button when the user launches the webapp from the homescreen. There is a known bug with iframes that make them virtually useless on iOS devices. The options available are:

    1) modify the remote webpage to include a back button option,
    – for example, detect the iOS device browser’s user-agent and make the button visible or request the page with additional parameters such as http://foo.com?backbutton=true

    2) open remote webpage in a separate browser page

    #319687

    dhberry
    Member

    Wayne – in the above answer, you list an option:

    open remote webpage in a separate browser page

    How can I open a new safari page outside of the app?

    #319702

    SonamGyato
    Member

    wayne,

    for 1)
    for that button that’s embedded in a page – will javascript:back()
    return the user to the webapp.

    how does this sound:

    i call my server – my server calls the target webpage.

    i create a frame with my button at the top w/ back button
    (javascript:back())
    and the bottom panel contains the target webpage.

    with that work?

    2)
    i assume that you open the new location with a new target
    attribute value. but to get back to the app – the user would have to
    open all the windows and find/select the webapp.

    #319708

    support-michael
    Keymaster

    >i create a frame with my button at the top w/ back button (javascript:back()) and the bottom panel contains the target webpage.

    My frame, I assume you mean an inline frame <iframe>? My expectation is that your UI will suffer from other problems such as failure to scroll.

    >2) i assume that you open the new location with a new target
    attribute value. but to get back to the app – the user would have to
    open all the windows and find/select the webapp.

    Correct, see this forum thread http://www.genuitec.com/support-mobione/viewtopic.php?f=8&t=2065&p=4171

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How to fit external webpage into a page in the app

You must be logged in to post in the forum log in