[Seaside] Noob jQuery AJAX question

Nick Ager nick.ager at gmail.com
Sun Nov 14 18:11:22 UTC 2010


BTW I tend to use symbols for html ids - that way declaring and calling you
use the same symbol and don't have to remember to add the # to the string
when querying. Your method would then become:

| val | html div id: #txt; with: ''. html break. html select list: { 1. 2.
3. }; selected: 2; "Pass the selection back to the server and save it."
onChange: ((html jQuery ajax script: [ :s | s << (s jQuery: #txt) text: (val
- 1) ]) serializeThis); callback: [ :v | val := v ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101114/f39ba546/attachment.htm


More information about the seaside mailing list