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

Joshua Higgins joshiggins at ...1601...
Sun May 3 21:54:06 CEST 2009


Thinking about it, it makes more sense just to

<% PRINT "<img src=\"hello.jpg\">"%>



2009/5/3 Benoît Minisini <gambas at ...1...>

> > 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
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
joshua higgins
>>>>>>------



More information about the User mailing list