- This topic has 4 replies, 2 voices, and was last updated 11 years, 1 month ago by support-octavio.
-
AuthorPosts
-
starmefMemberHi,
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.jpgThis 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
support-octavioMemberHi starmef,
I’ll provide an example in a couple minutes today.
support-octavioMemberExample 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.
starmefMemberThanks 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
support-octavioMemberHi 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.
-
AuthorPosts