Local Image Paths in HTML for Browser Widget Fails
hh at hyperhh.de
Sat Jan 6 16:48:15 EST 2018
Yet another option.
1. Put ONCE the loader into a custom property
answer file "input your loader.gif"
if it is empty then exit mouseUp
put base64Encode(url("binfile:"&it)) into ii
replace linefeed with empty in ii
set the loader of this card to compress(ii)
-- this has now at about the original size of the gif
2. Display the loader as follows.
set the htmltext of widget "browser" to \
"<img src='data:image/gif;base64," & \
decompress(the loader of this card) & "'>"
-- optionally add width and height attributes
More information about the use-livecode