<div><span class="gmail_quote">On 6/19/06, <b class="gmail_sendername">Marijn Haverbeke</b> <<a href="mailto:marijnh@gmail.com">marijnh@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Attached is a patch that makes some rather big changes to the <span id="st" name="st" class="st">select</span> fields in components/form.lisp, a small one to checkbox fields, and adds hidden fields. Because it seems there is little animo for overhauling the make-new-callback system, and the ucw_ajax branch uses hidden fields for callbacks that are allways needed, I decided to just hack stuff with hidden fields. Later, these hacks can be combined with the callback mechanisms in ucw_ajax.
</div></blockquote><div><br>i tried to apply this patch to ajax, but there were more bitrot issues then i can handle now. but imho this patch were a useful addition. could you take a look at it again? i can help with the ajax features on irc if we arrange a 'meeting'...
<br><br></div>some quick comments:<br> - there's get-parameter for the backends<br> - i'd use iter stuff instead of do<br> - record the independent changes in different records when easy/possible<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>- Setting the value of mapping <span id="st" name="st" class="st">select</span> fields now work like you'd expect it - you give it a value of the kind that you would get if you call value, instead of giving it a text label.
</div></blockquote><div><br>i dropped an onchange auto ajax submit feature in the form example due to (the lack of) this... </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>I added a function next-anon-<span id="st" name="st" class="st">field</span>-name that generates unique <span id="st" name="st" class="st">field</span> names, because the hidden-input trick requires some kind of name for the element even when none is specified. Radio buttons also use this function now - they used random strings before and a comment indicated that the person who put that there didn't think this was a very good approach either.
</div></blockquote><div><br>we can work out these, but always leave a TODO comment (as you did)<br><br></div></div>-- <br>- attila<br><br>"- The truth is that I've been too considerate, and so became unintentionally cruel...
<br> - I understand.<br> - No, you don't understand! We don't speak the same language!"<br><br>Ingmar Bergman - Smultronstället (Wild Strawberries)