Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: td() and Tr() inCGI.pm

by kwoff (Friar)
on Nov 26, 2001 at 02:08 UTC ( [id://127431]=note: print w/replies, xml ) Need Help??


in reply to td() and Tr() inCGI.pm

I agree with using HTML::Template if you can.
That said, I've done something like that, and I just concatenated the td() together.
my $graph = $q->img({-src=>"blank.gif", -alt=>"$percentage\%"}); my $graph_table = $q->table({-width=>'100%'}, $q->Tr([ $q->td({-height=>10, -width=>"${percent_label}\%"}, [$graph]) . $q->td({-height=>10, -width=>(100-$percentage).'%'}, [$graph]) ]));

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-03-29 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found