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..
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
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
>> 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...
>
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
>
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
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
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
>
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
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
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
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*
12 matches
Mail list logo