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=> [ '--
bySex', '--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 relationships (--pairs)</label></
td><td><label><input type="checkbox" name="OutputOptions" value="--
markerTables" />Report 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=> [ '--bySex', '--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


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to