Hello,
How can i use static html pages on my android and ios browser. So when i load a webpage to my browser i would like to use my static html page ( maybe it will be faster then ). There is something to do this?
Bests,
George
use html pages on Native iOS or Android browser
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 23
- Joined: Wed Feb 19, 2014 2:33 am
Re: use html pages on Native iOS or Android browser
Hi George,
if you have added your HTML files via the "Copy files" tab in the standalone builder,
you can access all stuff there with -> specialfolderpath("engine")
So just point your native browser object to one of these files like this:
...
## create correct URL to the file:
put "file://" into tUrl
put specialfolderpath("engine") & "/my_index.html" AFTER tUrl
mobileControlSet your_native_browsername_or_id_here, "url", tUrl
...
Should display your local HTML file on iOS and Android.
Best
Klaus
if you have added your HTML files via the "Copy files" tab in the standalone builder,
you can access all stuff there with -> specialfolderpath("engine")
So just point your native browser object to one of these files like this:
...
## create correct URL to the file:
put "file://" into tUrl
put specialfolderpath("engine") & "/my_index.html" AFTER tUrl
mobileControlSet your_native_browsername_or_id_here, "url", tUrl
...
Should display your local HTML file on iOS and Android.
Best
Klaus