Re: annoying table issue...

2010-04-08 Thread ColdFusion Developer

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 w...@witchnet.org 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=formborderimg 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:332755
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: annoying table issue...

2010-04-08 Thread Shaun Webster

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
/trtr
/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 w...@witchnet.org 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=formborderimg 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:332757
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: annoying table issue...

2010-04-08 Thread Eric Roberts

I found a solution...sort of...I made it static and used a blank row to set
the size of the cells with pixel gifs.  Now if I could just get the last
cell to cooperate and stay static when I expand the browser (yes...they are
set with values and not percents), I would be good :-D

The basic set up of this though is

cfoutput query=...
..codesnippet repeated 5 times...
cfif recordcount gte 6
...code snippet repeated 5 times...
/cfif
/cfoutput

Here's the code:

http://pastebin.com/fkMVND7G

Eric

-Original Message-
From: ColdFusion Developer [mailto:cfdev2...@gmail.com] 
Sent: Thursday, April 08, 2010 5:42 AM
To: cf-talk
Subject: Re: annoying table issue...


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 w...@witchnet.org 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=formborderimg 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:332763
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: annoying table issue...

2010-04-08 Thread Eric Roberts

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:sh...@webvalve.com] 
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
/trtr
/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 w...@witchnet.org 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=formborderimg 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


RE: annoying table issue...

2010-04-08 Thread Sebastiaan GMC van Dijk

Seems like someone need a quick HTML/CSS tutorial here (or maybe it's just 
legacy code you aren't allowed to touch, just touch up?) ;-)

Strip the script tag of it's language attribute, remove all the spacer-gif's 
(so 1990 - replace with CSS border-top:1px solid #000 or inline style if 
CFDocument), use div to center-align table, ditch the nobr-tags 
(http://www.htmlhelp.com/reference/css/classification/white-space.html), id 
your input-tags and remove the inline styles (valign etc) to the style-block or 
CSS-stylesheet.

When doing this and putting a nbsp; in the empty cells you at least have a 
cross-browser starting point, which makes your life a lot easier when it comes 
to bugfixing the styles.


Good luck! 




  
_
Windows 7: Se direkte-TV fra den bærbare PCen. Finn ut mer.
http://windows.microsoft.com/windows-7

~|
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:332765
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: annoying table issue...

2010-04-08 Thread Eric Roberts

That is how they want me to do it...

-Original Message-
From: Sebastiaan GMC van Dijk [mailto:seb...@hotmail.com] 
Sent: Thursday, April 08, 2010 10:31 AM
To: cf-talk
Subject: RE: annoying table issue...


Seems like someone need a quick HTML/CSS tutorial here (or maybe it's just
legacy code you aren't allowed to touch, just touch up?) ;-)

Strip the script tag of it's language attribute, remove all the spacer-gif's
(so 1990 - replace with CSS border-top:1px solid #000 or inline style if
CFDocument), use div to center-align table, ditch the nobr-tags
(http://www.htmlhelp.com/reference/css/classification/white-space.html), id
your input-tags and remove the inline styles (valign etc) to the style-block
or CSS-stylesheet.

When doing this and putting a nbsp; in the empty cells you at least have a
cross-browser starting point, which makes your life a lot easier when it
comes to bugfixing the styles.


Good luck! 




  
_
Windows 7: Se direkte-TV fra den bærbare PCen. Finn ut mer.
http://windows.microsoft.com/windows-7



~|
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:332766
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: annoying table issue...

2010-04-08 Thread Sebastiaan GMC van Dijk

OK ;-)


Then you could at least make sure you put a nbsp; in the empty table cells, to 
make sure they are filled up i.e. actually get borders in all browsers. 
Empty cells with no content is usually rendered very differently across 
browsers.
  
_
Windows Live™ Mail. Flere kontoer på ett sted.
http://download.live.com/wlmai

~|
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:332767
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: annoying table issue...

2010-04-08 Thread Eric Roberts

I tried both nbsp; and the gif and got the same results.

Eric


-Original Message-
From: Sebastiaan GMC van Dijk [mailto:seb...@hotmail.com] 
Sent: Thursday, April 08, 2010 10:57 AM
To: cf-talk
Subject: RE: annoying table issue...


OK ;-)


Then you could at least make sure you put a nbsp; in the empty table cells,
to make sure they are filled up i.e. actually get borders in all
browsers. Empty cells with no content is usually rendered very differently
across browsers.
  
_
Windows Live™ Mail. Flere kontoer på ett sted.
http://download.live.com/wlmai



~|
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:332808
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


annoying table issue...

2010-04-07 Thread Eric Roberts

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=formborderimg 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:332732
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm