[Seaside] Problem with Images

Rick Flower rickf at ca-flower.com
Tue Mar 7 20:04:18 UTC 2006


Rick Zaccone wrote:
> I am trying to display an image with Seaside.  I'm using Squeak 3.8.   
> This works:
>
> renderContentOn: html
>     html image: '/bunnies.jpg'
>
> If I change rendererClass so that I'm using the new API, it no longer 
> works:
>
> rendererClass
>     ^WARenderCanvas
>
> Instead, I just get the string /bunnies.jpg in my browser.  The HTML 
> generated is
>
> <img />/bunnies.jpg
>
> which clearly isn't right.  Would someone please tell me what's wrong 
> here?
Rick -- try something like the following and see if that works better -- 
it works for me with the new API..

html image url: '/bunnies.jpg'; altText: 'Bunnies'.




More information about the Seaside mailing list