[Gambas-user] Data.Image WebTable (gb-web-gui)
Herberth Guzman
herberthguzman at gmail.com
Tue Jul 6 21:25:23 CEST 2021
Hi
Thank you very much to all.
The following code worked for me.
Data.Html = ("<img src =" & Chr(34) & "
http://ip/cgi-bin/myappweb.gambas/alert.png" & Chr(34) & ">")
El mar, 6 jul 2021 a las 5:19, Benoît Minisini (<g4mba5 at gmail.com>)
escribió:
> Le 06/07/2021 à 03:42, Herberth Guzman a écrit :
> > 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.
> >
> > Thanks
> >
> >
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> >
>
> The image file must be in the "Public" project folder so that it can be
> served through HTTP.
>
> So, if you put Data.Image = "img/alert.png" (no parenthesis, this is not
> a translatable string), then the "alert.png" file must be in a "img"
> folder located in the "Public" folder of the project.
>
> The URL associated with the file will be "http(s)://<application
> root>/img/alert.png", where "<application root>" is the name of your
> application executable as CGI script.
>
> Regards,
>
> --
> Benoît Minisini
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210706/14c5363b/attachment.htm>
More information about the User
mailing list