Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > formatting tabl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1429 of 1496
Post > Topic >>

formatting tables generated by checkbox_group()

by nshephard@[EMAIL PROTECTED] (Neil) Nov 26, 2007 at 02:10 PM

Hi,

I was wondering if its possible to get the class="" field passed to
the tables generated by checkbox_group()?

For example, I have the following code

      $q -> checkbox_group(-name=>'GroupingOptions', -values=> [ '--
by***', '--byFamily' ], -labels=> \%GroupingOptions, -columns=>2),

which generates the following table with checkboxes



<table><tr><td><label><input type="checkbox" name="OutputOptions"
value="--pairs" />Summarise pairs of relation****ps (--pairs)</label></
td><td><label><input type="checkbox" name="OutputOptions" value="--
markerTables" />Re****t marker statistics (heterozygosity, genotyping
rates, etc.) (--markerTables)</label></td></tr><tr><td><label><input
type="checkbox" name="OutputOptions" value="--rewritePedigree" /
>Rewrite Pedigree File (--rewritePedigree)</label></td></tr></table>

but I've defined two different styles for tables in my css file

TABLE  {font-family: Helevitica, Arial, sans-serif; font-size: 12px;
font-weight: n
ormal;}
TABLE.blank  {font-family: Helevitica, Arial, sans-serif; font-size:
10px; font-weight: n
ormal;}

and would like the table field to include the class="blank" so that
the font size is set.  Works fine in html, but can I pass the
class="blank"?

I tried

      $q -> checkbox_group({-class='blank'}, -name=>'GroupingOptions',
-values=> [ '--by***', '--byFamily' ], -labels=> \%GroupingOptions, -
columns=>2),

but the table and checkboxes weren't drawn.  Should I redefine my css
styles so that the blank table is actually how I want default tables
to be (i.e. change the font-size in the two lines given), or is it
possible to get the class="" set vic CGI.pm?

Cheers

Neil
 




 2 Posts in Topic:
formatting tables generated by checkbox_group()
nshephard@[EMAIL PROTECTE  2007-11-26 14:10:03 
Re: formatting tables generated by checkbox_group()
sdavis2@[EMAIL PROTECTED]  2007-11-26 19:53:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 10:43:03 CST 2008.