[Seaside] mailto:
Sebastián Sastre
ssastre at seaswork.com.ar
Mon Jun 14 05:16:21 CEST 2004
Ouch !
one allways learn,
thanks for that,
Sebastián Sastre
ssastre at seaswork.com.ar
www.seaswork.com.ar
> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre
> de Avi Bryant
> Enviado el: Domingo, 13 de Junio de 2004 23:41
> Para: The Squeak Enterprise Aubergines Server - general discussion.
> Asunto: Re: [Seaside] mailto:
>
>
>
> On Jun 13, 2004, at 7:26 PM, Sebastián Sastre wrote:
>
> > Hi all,
> >
> > I was trying to add some #mailto: to the renderer but for some
> > reason it does not work.
> >
> > Here is the code:
> >
> > WAAbstractHtmlBuilder>>mailto: aEmailAddressString subject:
> > aSubjectString
> >
> > self document text: '<a
> > href="mailto:',aEmailAddressString,'?subject=',aSubjectString,'">'.
> >
> >
> > This generates the code but the link is missing in the
> final rendered
> > page.
> >
> > <a href="mailto:xxx at someserver.com?subject=uh?">
> > any idea of what is going on?
>
> The html needs to be <a
> href="mailto:xxx at someserver.com?subject=uh?">xxx at someserver.com</a>.
> You can't just put the <a> tag in there and assume the browser will
> know what your link text should be.
>
> > there is a better way to implement it?
>
> Yes. You shouldn't be generating HTML yourself; there are
> much higher
> level abstractions than that to use. Look at the
> implementation of any
> of the other methods on AbstractHtmlBuilder for examples. In
> fact, you
> could look at #anchorWithMailto: and
> #anchorWithMailto:subject:, since
> they already do what you want. :)
>
> Avi
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
>
More information about the Seaside
mailing list