[Seaside] Select and beSubmitOnChange, and handlers?

Carl Gundel carlg at libertybasic.com
Fri Apr 6 20:18:56 UTC 2007


When I use a select tag and I specify beSubmitOnChange I would like to be 
able to have a handler that works only when I click on that particular list. 
For example:

  html select
        list: self list;
        on: #selectedItem of: self;
        beSubmitOnClick;
        with: [ self triggerEvent: #changed with: self ]

The with: block gets evaluated even if I do not actually click on anything 
in the list.  Is there a way to have a handler that only gets evaluated when 
the user make a direct selection?

-Carl Gundel, author of Liberty BASIC
http://www.libertybasic.com




More information about the Seaside mailing list