[Cartoweb-users] tables.tpl href gets messed up

Milo van der Linden mlinden at zeelandnet.nl
Tue Oct 2 04:34:29 EDT 2007


Hello list!

I have changed my tables.tpl in order to show a hyperlink that a user 
can click

Here is my Code:

{if !$table->noRowId}<td>{$row->rowId}</td>{/if}
    {foreach name="measurement_fkey" from=$row->cells item=value}
               {if $smarty.foreach.measurement_fkey.first}
        <td>
        <a 
href="http://wssoilution.bosqom.nl/Boorstaat.aspx?width=450&height=250&language=nl&layout=someBPLname&view=single&measurementobjects={$value}&outputtype=jpg&database=BoormanagerV2"
 onclick="window.open('http://wssoilution.bosqom.nl/Boorstaat.aspx?width=450&height=250&language=nl&layout=someBPLname&view=single&measurementobjects={$value}&outputtype=jpg&database=BoormanagerV2', 
'{$value}',
'width=250,height=450,scrollbars=yes,resizable=yes'); return false">{$value}
        </a>
        </td>
           {else}
        <td>{$value}</td>
        {/if}


I cannot debug Internet Explorer, but Internet Explorer fails to create 
the popup.

When I inspect Firefox with Firebug; I see that some how the a href 
sequence gets messed up!

the onclick event gets positioned in front of href so the resulting 
hyperlink is something like <a onclick="" href=""> but I am certain I 
told the tables.tpl to do <a href="" onclick="">

Help !




-- 


	

Milo van der Linden
skype: milovanderlinden <skype:milovanderlinden?add>
mlinden at zeelandnet.nl <mailto:mlinden at zeelandnet.nl>
milovanderlinden at gmail.com <mailto:milovanderlinden at gmail.com>
milo at 3dsite.nl <mailto:milo at 3dsite.nl>
http://www.3dsite.nl

	  	

De informatie in dit bericht reflecteert mijn persoonlijke mening en 
niet die van een bedrijf of instantie. Aan de informatie kunnen geen 
rechten worden ontleend. Indien dit bericht onderdeel is van een forum, 
mailing-list of community dan gelden automatisch de bij het betreffende 
medium behorende voorwaarden. The information in this message reflects 
my personal opinion and not that of a company or public body. All rights 
reserved.If this message is contained in a mailing-list or community, 
the rights on the medium are automatically adapted.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071002/bc4469cd/attachment.html


More information about the Cartoweb-users mailing list