> 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 [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
