SOT: setting div visibility with javascript (fixed)

2008-10-10 Thread Scott Stewart
There was a call to a second function that was messing with the display settings. I removed the display settings from Q4Chk() and placed them in the second function and all is well.. Thanks to all for letting me bounce this off of you sas ~~

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
>Umm, it might be as simple as the JS not setting the display property >correctly? > >e.g. > >document.getElementById("COMMENTB").style.display = "none"; >document.getElementById("COMMENTC").style.display = ''; >document.getElementById("FRMSUBMIT").style.display = ''; > >Shouldn't the empty quotes

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
>>here's the template: >>http://cfm.pastebin.com/m549bfe76 > > >You really should investigate jQuery. > >It will allow you to ditch all this ugly overly-verbose code: > >document.getElementById("COMMENTB").style.display = "none"; >document.getElementById("COMMENTC").style.display = "none"; >documen

Re: setting div visibility with javascript

2008-10-10 Thread Peter Boughton
>here's the template: >http://cfm.pastebin.com/m549bfe76 You really should investigate jQuery. It will allow you to ditch all this ugly overly-verbose code: document.getElementById("COMMENTB").style.display = "none"; document.getElementById("COMMENTC").style.display = "none"; document.getElemen

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
user answers "yes", or "I don't know" to any question, that overrides the behavior triggered by any "no" answers. There it isclear as mud Craig Dudley wrote: > You shouldn't do. > > What's going wrong in your example? > > -----Ori

Re: SOT: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
No I understand that, display determines whether the the div will be rendered and visibility sets similar to opacity=0, you can't see it but it's there Peter Boughton wrote: >> If I'm setting the visibility for a div (display:none or display:block >> in this case), do also need to set visibilit

Re: SOT: setting div visibility with javascript

2008-10-10 Thread Peter Boughton
>If I'm setting the visibility for a div (display:none or display:block >in this case), do also need to set visibility for anything inside the >div. Nope - you only need to do it to the parent item. Note, you're not setting "visibility", you're setting "display". This isn't being pedantic; th

RE: setting div visibility with javascript

2008-10-10 Thread Craig Dudley
isplay = ''; Shouldn't the empty quotes be 'block' ? I could be wrong though. -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2008 15:59 To: cf-talk Subject: Re: setting div visibility with javascript It's complicated

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
ever if the user answers "yes", or "I don't know" to any question, that overrides the behavior triggered by any "no" answers. There it isclear as mud Craig Dudley wrote: > You shouldn't do. > > What's going wrong in your example? > > ---

RE: setting div visibility with javascript

2008-10-10 Thread Craig Dudley
You shouldn't do. What's going wrong in your example? -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2008 15:19 To: cf-talk Subject: SOT: setting div visibility with javascript Hey all, If I'm setting the visibility for a div (

SOT: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
Hey all, If I'm setting the visibility for a div (display:none or display:block in this case), do also need to set visibility for anything inside the div. IE: blah If I wanted this to not display, and behave properly, do I need to set the display property for the span tag a