Local files in browser widget
Klaus major-k
klaus at major-k.de
Fri Jul 12 14:52:22 EDT 2019
Hi Jaques,
> Am 12.07.2019 um 20:43 schrieb J. Landman Gay via use-livecode <use-livecode at lists.runrev.com>:
>
> On 7/12/19 9:10 AM, Devin Asay via use-livecode wrote:
>> On Jul 11, 2019, at 9:34 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>
>>> I think I asked this before but it isn't working now. I thought specialFolderPath("resources") was okay for read-only files. It fails on Android.
>>>
>>> put specialFolderPath("resources") & "/tFolder/tFile.html" into tPath
>>> set the url of widget "browser" to ("file://" & tPath)
>>>
>>> I get an error that the file was not found. It's there, the folder was included in the Copy Files pane in standalone settings. When I insert an answer dialog to view the path, there's a string that ends with "...base.apk/tFolder/tFile.html" so I think that's right.
>>>
>>> Do I need more or fewer slashes?
>> J,
>> I don’t think you need the slashes after file: at all. (“file:” & specialFolderPath(“resources”) & “/tFolder/tFile.hmtl”) should do it.
>> Also check case on folder and file names. Case matters in mobile file systems in my experience.
>
> Thanks Devin, but unfortunately it still doesn't work. Capitalization is correct (all lower case.) I also tried adding the internet library and tsNet, even though I don't use those, just to see if they were required. Still no go.
just to be sure, did you:
...
replace SPACE with "%20" in tPath
...
?
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
Best
Klaus
--
Klaus Major
https://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list