[Seaside] [2.6]Images and anchors

Ramon Leon ramon.leon at allresnet.com
Tue Oct 23 05:53:15 UTC 2007


> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org 
> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf 
> Of Carl Gundel
> Sent: Monday, October 22, 2007 6:54 PM
> To: Seaside - general discussion
> Subject: Re: [Seaside] [2.6]Images and anchors
> 
> >What's the easiest way to use an image for an anchor?  Is there a 
> >simple way to include an image >spec like so between the 
> start and end 
> >tags without subclassing or modifying what's there?  I've 
> >poked around 
> >but nothing jumped out at me.
> >
> >  <a blah blah><img src="image.gif"></a>
> 
> Oh that wasn't so hard.  Don't know why it took me so long:
> 
>   html anchor
>     with: [ html html: '<img src=''', self imagePath, '''>' ]
> 
> -Carl Gundel
> http://www.runbasic.com 

How about something simpler...

html anchor url: 'bla'; with: [ html image src: 'bla' ]

Ramon Leon
http://onsmalltalk.com  





More information about the seaside mailing list