Loading a local file into a UIWebView control
J. Landman Gay
jacque at hyperactivesw.com
Wed Sep 14 23:03:52 EDT 2011
On 9/14/11 9:13 PM, chris thompson wrote:
> Here is a code snippet that works for me:
>
> put "file://"& specialFolderPath("documents")& "/MyFile.html" into theURL
> replace space with "%20" in theURL
>
> iphoneControlCreate "browser"
> put the result into browserID
> iphoneControlSet browserID, "visible", "true"
> iphoneControlSet browserID, "url", theURL
>
> resizeStack
Thanks to all. Except for resizing the stack before I create the
browser, and naming my file "docs.html" instead of "MyFile.html", my
code is word for word identical to what Chris posted above.
I just tested on Android and the same path worked on the first try.
I'm completely stumped.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list