[Seaside] Anchor appearance when script attached

Laura Risani laura.risani at gmail.com
Mon Mar 2 23:37:54 UTC 2015


I'm facing a problem with this code that we mentioned
html anchor url:’javascript:{}’; onClick: aScript; onKeyDown:aScript
the problem is that when pressing enter key (while the anchor has focus)
triggers onKeyDown: (and variants) twice, while pressing any other key just
does it (as desired) once.
Is there a way to override this undesired behavior of enter key?


On Mon, Mar 2, 2015 at 6:13 PM, Laura Risani <laura.risani at gmail.com> wrote:

> Hi Johan. I thought for a moment it would do something else...
> I'll stick then with url:’javascript:{}’
> Best,
> Laura
>
> On Mon, Mar 2, 2015 at 4:43 PM, Johan Brichau <johan at inceptive.be> wrote:
>
>> Laura,
>>
>> That will make your page scroll to the top.
>> Not always desirable…
>>
>> Johan
>>
>> On 02 Mar 2015, at 17:23, Laura Risani <laura.risani at gmail.com> wrote:
>>
>> Seems that same anchor-like rendering by web browsers can be achieved
>> with url:'#' (instead of url:’javascript:{}’ ).
>>
>> On Wed, Feb 18, 2015 at 4:17 PM, Johan Brichau <johan at inceptive.be>
>> wrote:
>>
>>> Laura,
>>>
>>> > I had tried adding "callback:[]" but that renders the whole page again.
>>>
>>> That’s to be expected.
>>> I just wanted to make clear that if you do not add a callback, you need
>>> to set a url (href attribute) yourself or the browser will not show it as a
>>> (clickable) link.
>>>
>>> Johan_______________________________________________
>>> seaside mailing list
>>> 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
>>
>>
>>
>> _______________________________________________
>> 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/20150302/acc35805/attachment.htm


More information about the seaside mailing list