in reply to Creating a table using cgi.pm - a unique problem
What we see here is the distributive property of HTML shortcuts. if you don't want a tg be part of the dirtibution list, then just take it out:
use CGI; my $cgi = CGI->new(); print $cgi->Tr( {-align=>LEFT, -valign=>TOP}, [ $cgi->td( [ $cgi->a({-href=>"..", -target=>"_new"}, $c +gi->img("blah.gif")), ] ) . $cgi->td( {-OnClick=>"javascript:dothis()" }, [ $cgi->a({}, "a"), $cgi->hidden(-name=>'name2', -value=>'b') +. $cgi->a("b"), $cgi->hidden(-name=>'name3', -value=>'c') +. $cgi->a("c") ] ) ] );
This gives:
<tr align="LEFT" valign="TOP"> <td><a target="_new" href=".."><img>blah.gif</img></a></td> <td onclick="javascript:dothis()"><a>a</a></td> <td onclick="javascript:dothis()"><input type="hidden" name="name2" va +lue="b" /><a>b</a></td> <td onclick="javascript:dothis()"><input type="hidden" name="name3" va +lue="c" /><a>c</a></td> </tr>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating a table using cgi.pm - a unique problem
by sara2005 (Scribe) on Oct 31, 2005 at 14:37 UTC |