List Info

Thread: Automatic Table feature of version 2.2.0




Automatic Table feature of version 2.2.0
user name
2006-07-18 15:23:15
Hi, 

I have Embedded Perl v2.2.0 and try to Execute the following
Code:

--------schnipp---------------------
<table border="1">
	<tr><th>[  $name[$col]  ]</th></tr>
	<tr><td>[  $$data[$row]->{$name[$col]} 
]</td></tr>
</table> 
---------schnapp--------------------

It seems that the Syntax for the <th> Tag is not
defined within Embperl
2.2.0. The table head is repeated for every row i fetched
from the Database. 

Embperl::Syntax::EmbperlHTML doesn't mention th, so maybe
this behavior is
already known. Or is there something wrong with my
expression? 
 
I think it is an important feature, and there is still a
record in the
documentation that it should work! 

best regards 


     Hans Freitag

--
-- 
Habe Mut deinen eigenen Verstand zu benutzen! -- Immanuel
Kant


------------------------------------------------------------
---------
To unsubscribe, e-mail: embperl-unsubscribeperl.apache.org
For additional commands, e-mail: embperl-helpperl.apache.org

Automatic Table feature of version 2.2.0
user name
2006-07-19 18:03:31
Hi, 
> 
> I have Embedded Perl v2.2.0 and try to Execute the
following Code:
> 
> --------schnipp---------------------
> <table border="1">
> 	<tr><th>[  $name[$col] 
]</th></tr>
> 	<tr><td>[  $$data[$row]->{$name[$col]} 
]</td></tr> </table>
> ---------schnapp--------------------
> 
> It seems that the Syntax for the <th> Tag is not
defined 
> within Embperl 2.2.0. The table head is repeated for
every 
> row i fetched from the Database. 
> 
> Embperl::Syntax::EmbperlHTML doesn't mention th, so
maybe 
> this behavior is already known. Or is there something
wrong 
> with my expression? 
>  
> I think it is an important feature, and there is still
a 
> record in the documentation that it should work! 
> 

<th> is not supported in Embperl 2, use

<table border="1">
 	[$if $row == 0 $]<tr><th>[  $name[$col] 
]</th></tr>[$endif$]
 	<tr><td>[  $$data[$row]->{$name[$col]} 
]</td></tr> 
</table>

Should be possible to insert this into
Embperl::Syntax::EmbperlHTML, but it
is not done yet.

Gerald


 
** Virus checked by BB-5000 Mailfilter ** 


------------------------------------------------------------
---------
To unsubscribe, e-mail: embperl-unsubscribeperl.apache.org
For additional commands, e-mail: embperl-helpperl.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )