[Seaside] Dynamic Combobox
andres at lifia.info.unlp.edu.ar
Mon Aug 20 15:54:05 UTC 2007
Thanks Adrius and Lukas, it works like a charm (at least the combo stuff :))
Lukas Renggli escribió:
>> Thanks for the quick response! I wasn't aware that
>> callback: [:render | self renderCombobox2: render]
>> would force the refresh of the combo contents. I'll try right away.
>> Thanks again,
>> Andrius Paulavicius escribió:
>>> Well, Combobox2 rendering should depend on some state which is set in
>>> Combobox1s callback:
>>> html select
>>> callback: [:a | self updateCombobox2State: a];
>>> onChange: (html updater
>>> id: combobox2Id;
>>> callback: [:render | self renderCombobox2: render]).
> You could also check out some ready made components that ship with
> Scriptaculous, for example SUBrowser and SUTieredList (has an example
> on the class side).
More information about the seaside