Correct img format for browser widget.

hh hh at hyperhh.de
Sat Jul 15 10:40:55 EDT 2017


... Or in case you meant simple HTML load (not canvas2d):

<img src="...">

where src = "full http-path to image" (local server is running)
or src = "relative path to image"

for example:
src="http://localhost:8888/tests/images/myimage42.png"
src="../images/myimage42.png"

The relative path has to be relative to the *calling webpage* (the stack path doesn't matter).

> James H. wrote:
> Can someone tell me the correct format for an image src tag to use with the browser widget?
> I have a folder of HTML and an associated folder of images yet I am unable to get the images to show.
> They are .png.
> I have tried 
> Src = "full path to image"
> Src = "relative path to image"
> Src ="file://fullpath to image"
> Src="binfile:/full path to image"
> 
> None of them work, although the last does show a ? Icon where the image should appear. All the others show nothing.





More information about the use-livecode mailing list