how to load a local file into the browser widget?

Tore Nilsen 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:

on mouseUp

answer file "Choose html file to display"

set url of widget "browser" to it

end mouseUp


Tore

> 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).
> 
> Curt
> 
> -- 
> 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:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the Use-livecode mailing list