[Seaside] Help with Seaside - put an image into a table cell

Jupiter Jones jupiter.jones at mail.com
Sun Mar 31 20:46:30 UTC 2019


I’m not sure if this is what you are asking, however…

html tableData with: [ self showImageFor: anId using: html ]

…should display the image in the table cell.

> On 1 Apr 2019, at 7:14 am, David Pennington <david at totallyobjects.com> wrote:
> 
> Hi everyone. I am trying to present a list of objects using VisualAge Seaside. I am putting them into tables but I want the first cell of the row to be an image coming from a url. I can't seem to work out the message to send.
> 
> I am using  html tableData: aString to fill each cell.
> 
> At the moment |I have the following method that I wrote before I realised the problem so this doesn't work. 
> 
> showImageFor: anID using: html
> 
> html image width: 200;  url:  PSIni getImageURL, '/', anID printString, '.jpg'
> 
> PSIni getImageURL gets the image URL path from the ini file.
> 
> An example of the image url being constructed is http://www.totallyobjects.com/images/pennstadt/15.jpg
> 
> Can anyone help me with this?  
> 
> --------------------------------------------------
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list