[Seaside] Calling a DOM method from jQuery

John Toohey johnptoohey at gmail.com
Fri Apr 24 19:11:35 UTC 2009


Excellent work, thanks Lukas.

BTW, Do you know what is causing the problems in the Comet examples in
the latest Comet code?

On Fri, Apr 24, 2009 at 14:56, Lukas Renggli <renggli at gmail.com> wrote:
> Name: JQuery-Core-lr.58
> Author: lr
> Time: 24 April 2009, 8:49:46 pm
> UUID: 8123a342-53a1-4be6-84b6-101687e42b01
> Ancestors: JQuery-Core-lr.57
>
> - added missing events and all triggers
>
> This adds #triggerFocus, and many other things missing from the
> event-protocol (http://docs.jquery.com/Events).
>
> Lukas
>
> On Fri, Apr 24, 2009 at 8:27 PM, Lukas Renggli <renggli at gmail.com> wrote:
>>> To set the focus to the first field in a jQuery Dialog, I call onOpen:
>>> ((html jQuery id: #username)  call: 'focus()'); Its works fine, but FF
>>> complains that focus() is not a function. Am I doing something wrong
>>> here?
>>
>> The argument to #call: is a method name, not a method call itself. If
>> you have a look at the generated code with FireBug you can see that
>> this produces $('#username').focus()(). The methods #call:,
>> #call:with:, #call:with:with:, etc. are the Javascript counterpart to
>> #perform:, #perform:with:, #perform:with:with: in Smalltalk.
>>
>> Another issue -- but that is from my side -- is that #focus is
>> missing. I will shortly commit a version of JQuery-Core that includes
>> these event triggers as native methods, so you don't need to use
>> #call: anymore.
>>
>> Lukas
>>
>> --
>> Lukas Renggli
>> http://www.lukas-renggli.ch
>>
>
>
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



-- 
-JT


More information about the seaside mailing list