Discussion:
select tag and selected
Rommel Martinez
2008-04-24 01:40:57 UTC
Permalink
How do I achieve something like the following in CL-WHO?

<select>
<option>foo</option>
<option selected>bar</option>
</select>
--
Rommel M. Martinez <***@gmail.com>
Rommel Martinez
2008-04-24 05:03:03 UTC
Permalink
Post by Rommel Martinez
How do I achieve something like the following in CL-WHO?
<select>
<option>foo</option>
<option selected>bar</option>
</select>
--
What I did as a workaround is something like the following:

(fmt "<option value='~A' selected>~A</option>" val option)
--
Rommel M. Martinez <***@gmail.com>
Edi Weitz
2008-04-24 06:25:30 UTC
Permalink
Post by Rommel Martinez
(fmt "<option value='~A' selected>~A</option>" val option)
To do something like that you don't need CL-WHO, plain FORMAT will
do...
Rommel Martinez
2008-04-24 06:40:17 UTC
Permalink
Post by Edi Weitz
Post by Rommel Martinez
(fmt "<option value='~A' selected>~A</option>" val option)
To do something like that you don't need CL-WHO, plain FORMAT will
do...
_______________________________________________
cl-who-devel site list
http://common-lisp.net/mailman/listinfo/cl-who-devel
I read the example file in the test/ directory. I got it now.
Thanks a lot! :-)
--
Rommel M. Martinez <***@gmail.com>
Edi Weitz
2008-04-24 06:24:58 UTC
Permalink
Post by Rommel Martinez
How do I achieve something like the following in CL-WHO?
<select>
<option>foo</option>
<option selected>bar</option>
</select>
Look into the "test" subdirectory of Hunchentoot where you'll find
some examples.
Loading...