WebGadget will not display image
Posted: Mon Jul 21, 2014 12:03 am
Hi all,
I can't get the WebGadget to display image. The image(s) will only get displayed if the HTML code is saved as a file and I load the code as an url, like:
And file.html contains:
But the WebGadget will not show the image if done like this:
The img element just shows a white "element", but if the src has incorrect filename then the img element shows a questionmark.
I've tried different methods for hours - with no luck
I can't get the WebGadget to display image. The image(s) will only get displayed if the HTML code is saved as a file and I load the code as an url, like:
Code: Select all
OpenWindow(0, 5, 5, 500, 500, "")
WebGadget(0, 5, 5, 490, 490, "file:///Users/Mac/Desktop/file.html")
Code: Select all
<img src="Folder/ImgTest.bmp" />
Code: Select all
OpenWindow(0, 5, 5, 500, 500, "")
WebGadget(0, 5, 5, 490, 490, "")
SetGadgetItemText(0, #PB_Web_HtmlCode, "<img src='file:///Users/Mac/Desktop/Folder/ImgTest.bmp' />")
I've tried different methods for hours - with no luck
