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

Re^2: How can I add a -id attribute to a perl cgi start_Tr ?

by misterperl (Pilgrim)
on Feb 27, 2015 at 15:39 UTC ( [id://1118085]=note: print w/replies, xml ) Need Help??


in reply to Re: How can I add a -id attribute to a perl cgi start_Tr ?
in thread How can I add a -id attribute to a perl cgi start_Tr ?

thanks just saw that.. Working now :) Joy. Have a nice weekend..
  • Comment on Re^2: How can I add a -id attribute to a perl cgi start_Tr ?

Replies are listed 'Best First'.
Re^3: How can I add a -id attribute to a perl cgi start_Tr ?
by Your Mother (Archbishop) on Feb 27, 2015 at 19:48 UTC

    FWIW, I think is awkward usage and produces badly dated HTML.

    print $cgi->start_Tr({-id => "thisID", -valign => "top"});

    This is equivalent, less verbose, and less awkward–

    print '<tr id="thisID" valign="top">';

    I often use CGI to produce HTML but the strength lies in being able to tersely, e.g.–

    print table( Tr( td( \@long_list_of_td ) ) );

    So, for your use, I’d much rather inherit something like this–

    print Tr({-id => "thisID", -class => "CSSclass"}, td("some stuff"), td("etc") );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found