<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>chance are pretty high the table template was modified between
3.2 and 3.4 so I would suggest to compare a table templates in 3.4 and use it as
a basis</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=valerionoti@yahoo.it href="mailto:valerionoti@yahoo.it">Valerio
Noti</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 13, 2008 3:53
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Troubles with
tables.tpl</DIV>
<DIV><BR></DIV>Hello,<BR>I usually modify tpl files inserting javascript code.
i.e. I modified tables.tpl in order to open a pop-up windows when user click
on the map with query tool.<BR><BR>The following code works fine in cartoweb
3.2 but not in cw3.4:<BR>[...]<BR>{foreach from=$tables item=group}<BR>foreach
from=$group->tables item=table}<BR>{if $table->numRows >
0}<BR><script
language=javascript><BR>
{literal}<BR> strNomeTabella =
'{/literal}{$table->tableTitle
<DIV id=mb_0>}{literal}';<BR> alert
('Test');<BR>
{/literal}<BR></script><BR> {foreach
from=$table->columnTitles item=column}<BR>
<script
language=javascript><BR>
{literal}<BR>
var campo =
'{/literal}{$column}{literal}';<BR>
{/literal}<BR>
</script><BR>
{/foreach}<BR>[...]<BR>{/foreach}<BR>{/foreach}<BR><BR>In cw3.4 it seems that
javascript code is not active. Nothing is saved in variables and alert
statement doesn't work.<BR><BR><BR><BR>Thank you very much for any
help<BR><SPAN class=sg><BR><BR>Valerio</SPAN></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>