help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: Iliad: I must be misunderstanding some basic form b


From: Bèrto ëd Sèra
Subject: [Help-smalltalk] Re: Iliad: I must be misunderstanding some basic form behaviour...
Date: Sat, 14 Nov 2009 09:05:06 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]