[Seaside] anchorWithAction:text:
Brian Brown
rbb at techgame.net
Mon Apr 7 10:05:52 CEST 2003
On Monday 07 April 2003 12:40 am, Avi Bryant wrote:
>
> Brian,
>
> The code that will work for now is
>
> html openAnchorWithAction: [itemTarget mainContent: action].
> html imageWithForm: (ImageImports at: rollOver)).
> html close.
>
I now have a WAHtmlRenderer>>anchorWithAction:do
anchorWithAction: actionBlock do: linkBlock
self openAnchorWithAction: actionBlock.
linkBlock value.
self close.
and a WAHtmlRenderer>>anchorWithAction:form:
anchorWithAction: actionBlock form: aForm
self anchorWithAction: actionBlock do: [self imageWithForm: aForm].
... which mostly works! One problem is that #imageWithForm opens an <img>,
which has no closing tag in HTML, so when #anchorWithAction:do: is called,
the self close. winds up putting an </img> tag instead of a </a> tag. Is
there a way to "pop the stack" so to speak of the img tag as far as closure
is concerned?
Brian
More information about the Seaside
mailing list