Page 1 of 1

How can I browse html file from local path?

Posted: Sun Apr 06, 2014 8:15 pm
by minus
Hi,
I am new in livecode. I need a code about browsing local html file with livecode.

Thank you for your help.

Regards

Re: How can I browse html file from local path?

Posted: Sun Apr 06, 2014 8:40 pm
by dave.kilroy
Hi minus and welcome to the forum

I just did a quick Google search for "livecode local html file" and got a load of results - in particular there is this one which is yet another excellent article from Brigham Young University on html and LiveCode (about two-thirds way down the page they discuss getting local html files)

As well as Google I recommend spending time on LiveCode's tutorials ... and just practicing practicing practicing :)

Re: How can I browse html file from local path?

Posted: Tue Apr 08, 2014 8:11 am
by Jellicle
I'll leave it to you to find out how to make a browser control. When you've got that sorted out, do this:

put (specialfolderpath ("Documents") & "/localfile.html") into theURL
replace " " with "%20" in theURL -- weird, but required
mobileControlSet "Browser", "url", theURL

The above assumes a browser control called "Browser" and a file named localfile.html in the Documents folder for your app on the device or simulator.

Gerry