[Gambas-user] Data.Image WebTable (gb-web-gui)

Bruce Steers bsteers4 at gmail.com
Tue Jul 6 10:03:25 CEST 2021


On Tue, 6 Jul 2021 at 02:43, Herberth Guzman <herberthguzman at gmail.com>
wrote:

> Hi
> I have a web project (gb-web-gui)
>
> I need to display an image in a webtable
>
> the code:
> Data.Image = ("img/alert.png")
>
> but it doesn't work, am I doing something wrong ..?
>
> this code if it works
> Data.Html = "<img src=\"" & ("img/alert.png") & "\">"
>
> The problem with this code is that it works fine at runtime.
> But when I compile and upload it to my server it doesn't show the image.
>
> Can anybody help me.
>


try using absolute paths including the domain.etc
it's probably to do with your server settings and the visibility/url of the
img folder relative to the source
using the full url of the image will probably work

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210706/00ae6a64/attachment.htm>


More information about the User mailing list