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

Oliver Christen oliver.christen at camptocamp.com
Wed Oct 3 03:07:23 EDT 2007


3DSitewell, its hard to say with certainty without seeing the actual rendered code, but IE tend to be sensible to line return in template. I know it is ugly but try to write your <a href in only one line.
also be sure there is no messed quote and double-quote.

regards
Oliver
  ----- Original Message ----- 
  From: Milo van der Linden 
  To: cartoweb-users at lists.maptools.org 
  Sent: Tuesday, October 02, 2007 10:34 AM
  Subject: [Cartoweb-users] tables.tpl href gets messed up


  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
        mlinden at zeelandnet.nl
        milovanderlinden at gmail.com
        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.
       



------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071003/904258ba/attachment-0001.html


More information about the Cartoweb-users mailing list