how to load a local file into the browser widget?
tore.nilsen at me.com
Fri May 24 17:00:57 EDT 2019
Try to start the url with «file:/// <file:///>« this is what I get at the start of the url of a browser widget when i set the url from a script using «answer file» to navigate to any valid html file:
answer file "Choose html file to display"
set url of widget "browser" to it
> 24. mai 2019 kl. 22:29 skrev Curt Ford via use-livecode <use-livecode at lists.runrev.com>:
>> You must make sure that the filePath to the html file you would like to see does not contain any invalid characters like spaces, which you will find is OK by the file system but not with the browser.
> I had wondered about this; I renamed the file to "Browsertryout" and moved it to the desktop (so there were no spaces in the filePath, which is now "file://Users/cford/Desktop/Browsertryout.app/Contents/MacOS/Future.html"), but I'm still getting the same result (a blank widget).
> Sent from Postbox <https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach>
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode