how to load a local file into the browser widget?

2019-05-25 Thread Curt Ford via use-livecode
Thanks, hh, that does it! :) *answer*file"Choose an html file" *put*urlEncode(textEncode(it, "UTF-8")) intotPathWithCyrillic *set*theurlofwidget"Browser"totPathWithCyrillic Occasional accents & punctuation in the file names are not causing problems either (so far). But then the spaces..

Re: how to load a local file into the browser widget?

2019-05-25 Thread Paul Dupuis via use-livecode
On 5/25/2019 7:47 AM, Paul Dupuis via use-livecode wrote: On 5/25/2019 4:17 AM, Klaus major-k via use-livecode wrote: Sorry, I don't know, someone else needs to chime in here. Obvioulsy "Unicode, it just works" doesn't do with filenames. :-/ Our experience with LC90x has been that Unicode

Re: how to load a local file into the browser widget?

2019-05-25 Thread Paul Dupuis via use-livecode
On 5/25/2019 4:17 AM, Klaus major-k via use-livecode wrote: Sorry, I don't know, someone else needs to chime in here. Obvioulsy "Unicode, it just works" doesn't do with filenames. :-/ Our experience with LC90x has been that Unicode DOES just work with filename, for 'open file , there is a

Re: how to load a local file into the browser widget?

2019-05-25 Thread hh via use-livecode
>> Curt wrote: >> While I'm at it... some of the folders in the file path will >> be in Russian, which is breaking my current handler... >> I can run those items of the file path through a quick >> transliteration function to change брать into brat' etc., but >> thought it's worth checking... >

Re: how to load a local file into the browser widget?

2019-05-25 Thread Klaus major-k via use-livecode
Hi Curt, > Am 25.05.2019 um 00:43 schrieb Curt Ford via use-livecode > : > > Thanks Klaus, those are great tips! you are welcome! > While I'm at it... some of the folders in the file path will be in Russian, > which is breaking my current handler. Is there a way to run them through some >

how to load a local file into the browser widget?

2019-05-24 Thread Curt Ford via use-livecode
Thanks Klaus, those are great tips! While I'm at it... some of the folders in the file path will be in Russian, which is breaking my current handler. Is there a way to run them through some unicode-type function to make them work in a file path? I can run those items of the file path through

how to load a local file into the browser widget?

2019-05-24 Thread Curt Ford via use-livecode
Ah, thanks, Tore, that was it! Using two slashes in the handler *put*"file://"& thedefaultFolder& slash& "Future.html"intotFile produced the filePath with three slashes, file:///Users/cford/Desktop/BrowserTryout/Future.html which is now working fine. :) -- Sent from Postbox

Re: how to load a local file into the browser widget?

2019-05-24 Thread Klaus major-k via use-livecode
Hi all, > Am 24.05.2019 um 23:00 schrieb Tore Nilsen via use-livecode > : > > Try to start the url with «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 >

Re: how to load a local file into the browser widget?

2019-05-24 Thread Tore Nilsen via use-livecode
Try to start the url with «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

how to load a local file into the browser widget?

2019-05-24 Thread Curt Ford via use-livecode
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

Re: how to load a local file into the browser widget?

2019-05-24 Thread Tore Nilsen via use-livecode
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. Tore > 24. mai 2019 kl. 22:02 skrev Curt Ford via use-livecode > : > > Is there a trick to

how to load a local file into the browser widget?

2019-05-24 Thread Curt Ford via use-livecode
Is there a trick to getting a local html file to display in the browser widget? I'm using this in a test button (in 9.0.4, on a Mac): *on*mouseUp *# set the defaultFolder to the folder containing the stackfile* *set*theitemDelimitertoslash* get*theeffectivefilenameofthisstack*