<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Wow, so I learned something again ;-)<br>
<br>
Am 18.02.15 um 09:33 schrieb Johan Brichau:<br>
</div>
<blockquote
cite="mid:E7A88FFB-47EE-45FA-820C-4243EBAA741F@inceptive.be"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
Hi Laura,
<div class=""><br class="">
</div>
<div class="">You need to include an href attribute with the
anchor.</div>
<div class="">Seaside puts one when you add a callback and if you
do not need that (like in your example), you can set the href
yourself using the #url: message.</div>
<div class=""><br class="">
</div>
<div class="">We typically set the href to ‘javascript:{}’</div>
<div class=""><br class="">
</div>
<div class="">
<div dir="ltr" class="">
<div class="">html anchor url:’javascript:{}’; onClick:
aScript; onKeyDown:aScript</div>
<div class=""><br class="">
</div>
<div class="">Also see this discussion: <a
moz-do-not-send="true"
href="http://stackoverflow.com/questions/10510191/valid-to-use-a-anchor-tag-without-href-attribute/10510353#10510353"
class="">http://stackoverflow.com/questions/10510191/valid-to-use-a-anchor-tag-without-href-attribute/10510353#10510353</a></div>
<div class=""><br class="">
</div>
<div class="">cheers,</div>
<div class="">Johan</div>
</div>
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 18 Feb 2015, at 04:58, Laura Risani <<a
moz-do-not-send="true"
href="mailto:laura.risani@gmail.com" class="">laura.risani@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi all,
<div class=""><br class="">
</div>
<div class="">I want to attach a jQuery script to an
anchor element while keeping the regular anchor
appearance (i mean that web browsers render it like
any other anchor, being focusable), and to be
triggered under the same conditions a callback would
(clicked / pressing a key while having focus).</div>
<div class=""><br class="">
</div>
<div class="">I can attach the script by sending </div>
<div class="">html anchor onClick: aScript;
onKeyDown:aScript</div>
<div class="">but then the printed anchor looks on the
web browser like regular text and don't get foucs.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Laura</div>
</div>
_______________________________________________<br
class="">
seaside mailing list<br class="">
<a moz-do-not-send="true"
href="mailto:seaside@lists.squeakfoundation.org"
class="">seaside@lists.squeakfoundation.org</a><br
class="">
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br
class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel <a class="moz-txt-link-freetext" href="mailto:jtuchel@objektfabrik.de">mailto:jtuchel@objektfabrik.de</a>
Fliederweg 1 <a class="moz-txt-link-freetext" href="http://www.objektfabrik.de">http://www.objektfabrik.de</a>
D-71640 Ludwigsburg <a class="moz-txt-link-freetext" href="http://joachimtuchel.wordpress.com">http://joachimtuchel.wordpress.com</a>
Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1
</pre>
</body>
</html>