Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Formatting labels of checkbox groups

by lcanty (Friar)
on Aug 16, 2004 at 07:09 UTC ( [id://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)
http://www.webmin.com/intro.html
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 CGI.pm (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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found