Re: Getting Browser Widget to Read Local Assets

2019-01-15 Thread hh via use-livecode
BR, assuming you don't have a local server running: It is an essential difference whether you set the htmltext or set the URL of the widget. If the image is called in the htmltext then there is no way but using a dataURL (=inline image), no matter if it is an img tag or called in the style tag.

Re: Getting Browser Widget to Read Local Assets

2019-01-15 Thread Sannyasin Brahmanathaswami via use-livecode
HH wrote: You could also do step 1 to 4 once and put compress(fld "HTML") into a , then set later on in btn "LoadURL" the htmltext to decompress(). BR: Thanks for your attentive in response to my query. I am keeping you posts in a folder entitled "Browser Widget Manual" I tried thi

Re: Getting Browser Widget to Read Local Assets

2019-01-11 Thread hh via use-livecode
Field and button names below relate to my example stack. http://forums.livecode.com/viewtopic.php?p=173867#p173867 To use a local file (= NOT from a local or remote server) you have to load the image from a stack property or url("binfile:"...) and add it inline (base64 encoded): Step 1: imageVari

Getting Browser Widget to Read Local Assets

2019-01-11 Thread Sannyasin Brahmanathaswami via use-livecode
I finally got around to implementing this. Works great! In terms of being a loader for on browserDocumentLoadComplete pURL if pURl is not empty then send "hideloader" to me in 1 second end if [snip] One caveat: Old path problem. I can't get the browser to read a local image in this