Re: checked attribute for a checkbox input
Karsten Poeck <[email protected]> Wed, 17 Mar 2004 21:13:56 +0100
| Newsgroups | gmane.lisp.open-source.franz |
|---|---|
| Message-ID | <[email protected]> |
At 19:55 17/03/2004, you wrote: >Hello > >Can somebody help me on this point : > >How to build with AllegroServe a form with an input type "checkbox" where >the boolean attribute checked is set depending on the evaluation of a lisp >function. > >This does'nt seem to work : >((:input :type "checkbox" :name "foo" :value "yes" :checked >(a-lisp-function) )) > >Regards > >Jacques RATTIER > >[email protected] >[email protected] >fixe:+33 1 45 29 49 41 mobile: +33 6 73 89 38 88 I use a snippet like (NET.HTML.GENERATOR:HTML ((:input :type "Checkbox" :name id :value aValue :if* (my-lisp-function aValue) :checked "CHECKED" ) (:princ aValue) :newline ) ) saludos Karsten