help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: radio button lables?


From: Stephen F. Booth
Subject: RE: radio button lables?
Date: Thu, 3 May 2001 19:42:51 -0500

> I've been playing with cgicc recently, and I'm not quite sure how to make
> something work. I've looked at demo/* example/* and cgicc/* and I
> can't see
> anything that looks like it'll do what I want.
>
> I want to create a
>
> <input type="radio" name="bleen" value="foo">thing1
> <input type="radio" name="bleen" value="bar">thing2
> <input type="radio" name="bleen" value="baz">thing3
>
> and I can't figure out how to get the 'thingN' stuck on the end.
> I mean, I
> could just cout << the stuff as I was building it, but I'm
> building the whole
> thing into a big HTMLElement*, and ->add()ing stuff as I go,
> thereby making
> that difficult.
>
> Where can I find an example (or documentation) about how to do this?

There currently isn't a way to do what you want with the existing code.  I
don't think it would be too hard to add something to the
HTMLElement/GenericAtomicElement code to make that possible.  Specifically,
the render() function in HTMLElement could be changed to append getData()
after the tag if text was added via some new method, maybe called text().
Something like:

HTMLElement form;
form.add(input().set("type","radio").set("name","bleen").set("value","foo").
text("thing1"));

Thoughts?

-Stephen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]