[Seaside] Anchor appearance when script attached

jtuchel at objektfabrik.de jtuchel at objektfabrik.de
Wed Feb 18 09:13:19 UTC 2015


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 
>> <mailto: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 
>> <mailto:seaside at lists.squeakfoundation.org>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          mailto: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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150218/b3532bdb/attachment.htm


More information about the seaside mailing list