Page 1 of 1

use html pages on Native iOS or Android browser

Posted: Mon Feb 09, 2015 11:54 am
by bohmgyorgy1990
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

Re: use html pages on Native iOS or Android browser

Posted: Mon Feb 09, 2015 2:37 pm
by Klaus
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