Skip to main content
Inspiring
April 15, 2010
Question

cfmap inside table based layout

  • April 15, 2010
  • 1 reply
  • 555 views

I'm noticing that the table attributtes set within a table are dropped from any data cells after a cfmap tag is placed in the table. In a simple example with cellpadding you will see that it works in the data cells before the cfmap tag but not after. Here is some sample code:

<html>
<body>
<table  cellpadding=20 width=800>
     <tr>
          <td width=200>
           This is a  test of cellpadding before a cfmap tag is hit in the code...
          </td>
          <td  width=400>
               <cfmap  centeraddress="15090" height="300" name="aca" width="400" zoomlevel="15" typecontrol="advanced" markerwindowcontent="Adventure Cycling  Association Headquarters" zoomcontrol="large3d">
          </td>
          <td width=200>
           This is a test of  cellpadding after a cfmap tag is hit in the code...
          </td>
     </tr>
</table>
</body>
</html>

I know that using tables for layout is not a desired practice, but I'm curious as to why this is happening. I'm not noticing anything in the source that should cause this and it is happening across multiple browsers. Any input would be greatly appreciated.

    This topic has been closed for replies.

    1 reply

    Inspiring
    April 16, 2010

    I looked at this issue a little further today and noticed that using any of the cfajax based tags cause this issue. I figured I could use a cfwindow to move the map out of the page to keep from breaking the cellspacing attribute. I noticed that using cfwindow or even cfajaximport breaks the cellpading for the remaining table cells. Is this a bug or is there something I'm not understanding about using any of the ajax based tags?