[Seaside] SeasideAsync and default action

Lukas Renggli renggli at gmail.com
Fri Dec 1 21:02:15 UTC 2006


> I have no trouble using SeasideAsync with the textinput, and I replace the
> submit button with an anchor.  This works okay as long at the user clicks on
> the anchor.  However, I really want the user to be able to just hit Enter.
> With non asynch Seaside, this is not a problem.  How can I handle the Enter
> key with a live callback.  It is possible to have a default action for the
> form that uses a live callback?

In Scriptaculous you could use something like this:

html textInput
   id: 'console';
   callback: [ :value | ... ];
   onEnter: (html request triggerFormElement: 'console')

I don't know how to compose scripts in SeasideAsync.

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Seaside mailing list