[Seaside] keypress event with argument

Lukas Renggli renggli at gmail.com
Thu Jul 15 09:34:50 UTC 2010


Use

   JSStream argument: 0

to access the first argument. The joy of positional arguments can also
have its advantages :-)

Lukas

On 15 July 2010 11:14, Dennis Schetinin <chaetal at gmail.com> wrote:
> That's ok, thanks.
> But what about the argument my handler to be called with?
>
> $(document).keypress(
> function(e){
>              ^^^
> How can I get this one?
>
> 2010/7/15 Lukas Renggli <renggli at gmail.com>
>>
>> You can write
>>
>>    html jQuery: (JSStream on: 'document')
>>
>> to get
>>
>>    $(document)
>>
>> In JQuery-Core-lr.107 I've added the method #document to make this easier:
>>
>>    html jQuery document
>>
>> Lukas
>>
>> --
>> Lukas Renggli
>> www.lukas-renggli.ch
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
> --
> Dennis Schetinin
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



-- 
Lukas Renggli
www.lukas-renggli.ch


More information about the seaside mailing list