[Seaside] Dynamic Combobox
renggli at gmail.com
Mon Aug 20 04:58:38 UTC 2007
> 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