I was trying to do this:
contents [
<category: 'building'>
^[:e |
| divImage divtitle form submit |
divImage := e div id: 'search-image'.
divtitle := divImage div class: 'sidebar-title title-right'.
divtitle build: (self localize: #title).
form := divImage form id: 'searchForm'.
(form textarea)
cols: 17;
rows: 2;
action: [:val | self target: val].
form br.
submit := form div build:
(LocalizedButton new
from: (self getText: #searchButton)
withStatus: (self status: #searchButton)
withAction: [self answer: self doSearch]).
submit onClick: 'javascript:document.forms.searchForm.submit()'.
form br.
form checkbox
action: [:val | nil].
form build: (self localize: #includeDef).
form br.
(divImage div class: 'help')
build: (self localize: #help) ]
]
it "kindof" made sense, too bad it doesn't work. Possibly it does
submit only after doSearch is called... Any idea?
Berto
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk