Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^4: Formatting labels of checkbox groups

by lcanty (Friar)
on Aug 16, 2004 at 07:09 UTC ( #383214=note: print w/replies, xml ) Need Help??

in reply to Re^3: Formatting labels of checkbox groups
in thread Formatting labels of checkbox groups

Hey again Zed,

well actually the problem started with dynamic labelling of anywhere between 10 - 2000 checkboxes, which obviously meant creating the one checkbox_group. Unfortunately though im building a web-based interface to some webmin modules. (Webmin is a web base interface to Unix/Linux written in perl)
because of this CSS is out of the question.
Currently the checkbox structure is already in it's own table with columns, but that's where i keep running into blocks. i also require the checkbox labels to also be in columns.
I was hoping to also achieve this without having to create the possible 2000 boxes individually on the fly.

i've already tried    but that didnt work, instead all it does is interpret the &nbsp and print it with part of the label.
I've also tried

CGI::pre("$title $description $moretext")
but that seems to embed the  <PRE>tags into the actual desription rather than interpreting them as the html that they're meant to be.

Replies are listed 'Best First'.
Re^5: Formatting labels of checkbox groups
by Zed_Lopez (Chaplain) on Aug 16, 2004 at 07:21 UTC

    I'm not suggesting putting &nbsp; or CGI::pre within a -label parameter. I was suggesting outputting them after the checkbox call (and you would have to call checkbox individually for each desired checkbox.)

    If you want to use checkbox_group, you'll need your own, like tye suggested. You could modify your (which will probably bite you in the long run), create a new package that subclasses it, or copy CGI's checkbox_group code into your own stuff and modify it there.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://383214]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2023-06-07 19:59 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (29 votes). Check out past polls.