facebook

link to internal image as a zoomable image

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

    starmef
    Member

    Hi,

    I need to link to an image with zoom in/out function.
    At the moment, the image works when it’s hosted in a web site like
    http://www.parisfollowme.com/maps/metro.jpg

    This link needs an internet wifi or 3G access.

    The problem is that some time the network is not available like underground metro situation.

    So instead of putting the url http://…. , I need to use internal file inside the app as
    file://metro.jpg with new window view option.

    So how to do that with the click action button because there is only http:// option possibility.
    Where to put the file (in the root like .mobi files area) or in image directory (if so, what url to use to call the image file).

    URGENT request because I am blocked to publish the app and start promoting it.

    Kind regards

    #343288 Reply

    Hi starmef,

    I’ll provide an example in a couple minutes today.

    #343289 Reply

    Example contains:
    local-zoomable-image.mobi : main design that has a button that opens imageviewer.html in a new screen on your app.
    logo.png : image to zoom in/out.
    imageviewer.html : file that is open when the button is pushed in the app, contains logo image.

    These last two files need to be added as Additional Project Files. See http://www.genuitec.com/mobile/docs/projectOrg/projectOrg.html#organizing_new_project

    Note that the code in button is:

    window.open(
          'imageviewer.html', // url to load
          '_blank',                                   // open in a child window
            "enableViewportScale=yes");        // options list, enable scaling (pinch/zoom)

    As the comment in code, this is necessary to enable scaling. If you can wait until Tues or Wed of next week we will have this fixed on the Go to Url action.
    Let us know how it goes.

    Attachments:
    You must be logged in to view attached files.
    #343300 Reply

    starmef
    Member

    Thanks for the help.
    I can wait till next week. Please let me know when it’s fixed.
    It may work fine in Android and iOS.
    Kind regards
    Roby

    #343482 Reply

    Hi starmef,

    Mobione 2.5 milestone 3 is available now, it includes a fix for this issue. See more info here: http://www.genuitec.com/support-genuitec/viewtopic.php?f=2&t=6308

    Now you have to configure the Action as a Go to URL and select a popup window.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: link to internal image as a zoomable image

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