Hi,
I am new in livecode. I need a code about browsing local html file with livecode.
Thank you for your help.
Regards
How can I browse html file from local path?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: How can I browse html file from local path?
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
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

"...this is not the code you are looking for..."
Re: How can I browse html file from local path?
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
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
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.