[Gambas-user] server pages again... possible bug

Benoît Minisini gambas at ...1...
Sun May 3 19:47:29 CEST 2009


> I'm trying to dynamically change an image. Here is a simple page:
>
>
> #!/usr/bin/env gbw2
> <%
> DIM sEnv AS String
> %>
>
> <html>
>
> <%
> sEnv = "hello.jpg"
> %>
>
> <img src="<%= sEnv%>">
>
> </html>
>
>
> This looks okay to me, but on running, <$= sEnv%> inside the <img> tag is
> not evaluated, presumably because it is inside the img tag. Is this
> expected behaviour?

By reading the code, I noticed that "<%" and "<%=" are not taken into account 
inside HTML markups.

Maybe it could be logical for "<%", but not for "<%=". I will fix that for the 
next Gambas 2 release.

Regards,

-- 
Benoît




More information about the User mailing list