<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags" xmlns:o =
"urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=625353414-31082007>I see there is not that easy because anchors *should*
just do nothing when they have updates onClick and let the update request do the
trick. Mmmmmm... at least this could be commented somehow</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=625353414-31082007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=625353414-31082007> cheers,</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV align=left><SPAN class=250542422-20122006>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><st1:PersonName
w:st="on" ProductID="Sebastian Sastre "><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Sebastian
Sastre<o:p></o:p></SPAN></st1:PersonName></P></DIV></SPAN>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=es dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> seaside-bounces@lists.squeakfoundation.org
[mailto:seaside-bounces@lists.squeakfoundation.org] <B>En nombre de
</B>Sebastian Sastre<BR><B>Enviado el:</B> Viernes, 31 de Agosto de 2007
11:13<BR><B>Para:</B> 'Seaside - general discussion'<BR><B>Asunto:</B>
[Seaside] Anchor suggestion<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=015595413-31082007>Hi
there,</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007> updating some code not to use
anymore the deprecated api #text: I've found right now in 2.8 (lr-462) that
WAAnchorTag has with: and callback: as expected but one *should* use them in
the right order.</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007> There is no other way to know the
right order than to: 1 look and interpret anchor's code 2 try and see what
happends</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007> I have no personal problem with
this because I'm used to but with a simple touch it could be better. For
example:</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007>WAAnchorTagwith: aBlock<BR> url
isNil<BR> ifFalse: [ self attributes at: 'href' put: url
]</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007>....</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=015595413-31082007>not only
is not commented in the code but also erroneous suggest that only aBlock is
coming. Also annoying is the fact that the anchor is neutralized by the
void(0) action when is not instantiated in the right order.
</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=015595413-31082007>So.. a
little change to this:</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=015595413-31082007>with:
aBlockOrString<BR> url isNil<BR> ifFalse: [ self attributes
at: 'href' put: url ]<BR> ifTrue: [<BR> ((self
attributes includesKey: 'href') or: [ self attributes includesKey: 'name'
])<BR> ifFalse: [ self attributes at: 'href' put:
'javascript:alert("Are you sure about how the callback for this anchor is
coded?")' ] ].<BR> super with: aBlock</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=015595413-31082007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=015595413-31082007>will call
developers attention right to the solution saving it's time not to mention the
time of not that experienced developers.</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT> </DIV>
<DIV><SPAN class=015595413-31082007><FONT face="Trebuchet MS"
size=2> my 2 cents,</FONT></SPAN></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT> </DIV>
<DIV align=left><SPAN class=250542422-20122006>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><st1:PersonName
w:st="on" ProductID="Sebastian Sastre "><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Sebastian
Sastre</SPAN></st1:PersonName></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><st1:PersonName
w:st="on" ProductID="Sebastian Sastre "><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p><SPAN
class=015595413-31082007>PS: I'm worried about the criteria more than the
case. I don't think this as being acceptable for *The Seaside Experience* that
one could want </SPAN></o:p></SPAN></st1:PersonName></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p> </o:p></SPAN></P></DIV></SPAN>
<DIV><FONT face="Trebuchet MS"
size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>