use html pages on Native iOS or Android browser

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bohmgyorgy1990
Posts: 23
Joined: Wed Feb 19, 2014 2:33 am

use html pages on Native iOS or Android browser

Post by bohmgyorgy1990 » Mon Feb 09, 2015 11:54 am

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

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: use html pages on Native iOS or Android browser

Post by Klaus » Mon Feb 09, 2015 2:37 pm

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

Post Reply