[Seaside] html select question
mzaidi86 at gmail.com
Wed Mar 26 20:09:24 UTC 2014
I have a select list implemented as follows:
id := html nextId.
widget := html select.
style: ('height: %1px; width: %2px; z-index: 101; position: relative;
font-size: 11px; ' bindWith: self height printString with: self width
list: self getList;
selected: self selectedItemString;
onChange: (html jQuery ajax serializeThis);
onChange: (self renderPortal: [self setSelectedItem: self selectedItem] on:
callback: [:value | self selectedItem: (self getItemFrom: value)]
I'm seeing an issue where sometimes, the second onChange event fires before
the callback which produces the wrong result. The correct behaviour would
be the execution of events as follows:
So far, I've been unable to find a way to do this. Any help would be great.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside