I am using eclipse...I avoid Dreamweaver because of issues like that ;-) While it is definitely the cleanest of any of the code generating IDE's, it still isn't perfect. Thanks!
-----Original Message----- From: Shaun Webster [mailto:[email protected]] Sent: Thursday, April 08, 2010 7:19 AM To: cf-talk Subject: Re: annoying table issue... This might not be related at all but I know DreamWeaver likes to "correct" problems it sees with tag nesting etc. even if you disable the help in the settings. For example if you used something like the following to start a new row after every 3 records DreamWeaver might add opening/closing tags or shuffle around the order of the tags to try to "fix" it. <cfif rowcount MOD 3 EQ 0> </tr><tr> </cfif> -- Shaun Webster On Apr 8, 2010, at 6:41 AM, ColdFusion Developer wrote: > > Based on the code snippets you provided, it will add the 1 pixel TD. > > Do you have conditional logic around the last TD? > > Can you paste the complete code snippet so it can be reviewed? > My initial thought is the conditional logic is not set up right. > > > > On Wed, Apr 7, 2010 at 5:13 PM, Eric Roberts <[email protected]> wrote: > >> >> I am having a browser rendering issue. I have a dynamic table. It is >> displaying radio buttons for a job assessment. The assessment can have up >> to 10 responses, so the number of radio buttons is dynamic. I have it set >> with 5 columns (a second row will show up if there are 6 or more >> responses). >> If there are less than 5 (from 6-9 responses) it puts radio buttons in the >> appropriate cells and then I use a spacer gif for the "empty cells", so, >> for >> instance, if there are 2 responses, you have: button button blank blank >> blank. The cells have borders (using images rather than the table border). >> Here's the code (it repeats the response cells if there are more than 5 >> obviously.) >> >> >> >> <td align="center" valign="middle" #cell_width# #cellstyle#> >> >> <cfif get_answers.recordcount gte 1> >> >> <A href="##" id="answer_detail_popup" >> >> >> onMouseOver="document.getElementById('answer_detail_popup').style.cursor='de >> fault';stm(Text[1],Style[1])" >> >> onMouseOut="htm()" >> >> tabindex="-1"> >> >> <cfinput type="radio" >> >> name="assess_answer#GetAssess.CurrentRow#" >> >> id="assess_answer#GetAssess.CurrentRow#" >> >> checked="no" >> >> value="#get_answers.answer_id[1]#" >> >> required="no" >> >> passThrough="title='#get_answers.answer_label[1]#'"> >> >> </a> >> >> <cfelse> >> >> <img src="img/pixel.gif" #cell_width# height="30" border="0"> >> >> </cfif> >> >> </td> >> >> <td width="1" class="formborder"><img src="img/pixel.gif" width="1" >> height="30" border="0"></td> >> >> >> >> >> >> The href is for an ajax call for a dynamic mouseover label. This snippet >> is repeated 5 times to generate the 5 cells across.cell width = >> 'width="20%"' >> >> >> >> >> >> This looks great in IE, but in FF, it adds a pixel to the last cell with a >> radio button to any rows that do not have 5 buttons. Rows that are either >> blank or have 5 buttons render as expected. I have tried adjusting the >> width of the spacer gif differently than the td width, but that didn't >> help. >> I have been banging my head over this all day. Help!!! >> >> >> >> Any ideas? >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332764 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

