[Seaside] Q on "html select" and how to get selected item in an
squeakman at gmail.com
Thu Oct 13 14:03:27 UTC 2011
Is there a way to get the selectedItem when the Ajax callback is
triggered in an html select?
The following code snippet works for me but I think there must be a
list: self listOfStocks;
onClick: (html scriptaculous request
callback: [:i |self selectedStockIndex: i asNumber + 1.]
value: self jsForGetSelectedIndex).
Note that I am using the call:value: method.
the selected index.
In the callback: I use this returned value to figure out which item was
Is there a better way to do this?
More information about the seaside