[Seaside] Anchor appearance when script attached

Laura Risani laura.risani at gmail.com
Wed Feb 18 16:31:58 UTC 2015


Thank you Joachim and Johan for your answers.

I had tried adding "callback:[]" but that renders the whole page again.

Very interesting the discussion on SO about the semantic and functional
nature of the anchor tag.

On Wed, Feb 18, 2015 at 6:13 AM, jtuchel at objektfabrik.de <
jtuchel at objektfabrik.de> wrote:

>  Wow, so I learned something again ;-)
>
> Am 18.02.15 um 09:33 schrieb Johan Brichau:
>
> Hi Laura,
>
>  You need to include an href attribute with the anchor.
> 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.
>
>  We typically set the href to ‘javascript:{}’
>
>   html anchor url:’javascript:{}’; onClick: aScript; onKeyDown:aScript
>
>  Also see this discussion:
> http://stackoverflow.com/questions/10510191/valid-to-use-a-anchor-tag-without-href-attribute/10510353#10510353
>
>  cheers,
> Johan
>
>  On 18 Feb 2015, at 04:58, Laura Risani <laura.risani at gmail.com> wrote:
>
>  Hi all,
>
>  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).
>
>  I can attach the script by sending
> html anchor onClick: aScript; onKeyDown:aScript
> but then the printed anchor looks on the web browser like regular text and
> don't get foucs.
>
>  Best,
> Laura
>  _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
> _______________________________________________
> seaside mailing listseaside at lists.squeakfoundation.orghttp://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
> --
> -----------------------------------------------------------------------
> Objektfabrik Joachim Tuchel          mailto:jtuchel at objektfabrik.de <jtuchel at objektfabrik.de>
> Fliederweg 1                         http://www.objektfabrik.de
> D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
> Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150218/e961d5a9/attachment-0001.htm


More information about the seaside mailing list