[Seaside] Problem with Images

Rick Zaccone zaccone at bucknell.edu
Tue Mar 7 20:13:40 UTC 2006


On Mar 7, 2006, at 3:04 PM, Rick Flower wrote:

> 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'.

Thanks Rick.  That does indeed work.

Rick



More information about the Seaside mailing list