|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
DIV hide failureOK - this is stupid I know, but why does this not hide the div when the
conditional is not met? If acctForm.MemID length is 0, it displays the div - but if the user tries again, and acctForm.MemID is not zero, it does not turn around and hide it. If someone can help, I'd be appreciative. No errors are thrown. Dave onload = setscreen; function setscreen() { if(document.all) { document.all.a.style.visibility = 'hidden'; } else if(document.getElementByID) { document.getElementByID("a").visibility = 'hidden'; } else { document.layers["a"].visibility = 'hidden'; } } function acctNo() { setscreen() if(document.acctForm.MemID.value.length == 0) { if(document.all) { document.all.a.style.visibility = 'visible'; } else if(document.getElementByID) { document.getElementByID("a").visibility = 'visible'; } else { document.layers["a"].visibility = 'visible'; } } } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Protect Your PC from viruses, hackers, spam and more. Buy PC-cillin with Easy Installation & Support http://www.houseoffusion.com/banners/view.cfm?bannerid=61 Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2071 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54 |
|
|
Re: DIV hide failureOK - I said it was stupid. It works in IE (must have been a caching issue) however, it does not work in Firefox. Any suggestions? Nothing ever displays.
>OK - this is stupid I know, but why does this not hide the div when the >conditional is not met? If acctForm.MemID length is 0, it displays the >div - but if the user tries again, and acctForm.MemID is not zero, it does >not turn around and hide it. If someone can help, I'd be appreciative. No >errors are thrown. > >Dave > >onload = setscreen; >function setscreen() { > if(document.all) { > document.all.a.style.visibility = 'hidden'; > } else if(document.getElementByID) { > document.getElementByID("a").visibility = 'hidden'; > } else { > document.layers["a"].visibility = 'hidden'; > } >} >function acctNo() { > setscreen() > if(document.acctForm.MemID.value.length == 0) { > if(document.all) { > document.all.a.style.visibility = 'visible'; > } else if(document.getElementByID) { > document.getElementByID("a").visibility = 'visible'; > } else { > document.layers["a"].visibility = 'visible'; > } > } >} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get help! RoboHelp http://www.houseoffusion.com/banners/view.cfm?bannerid=58 Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2072 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54 |
|
|
Re: DIV hide failureI changed the order it looks for the layer/getElementByID/all and it works. Thanks Dave <grin>
> OK - I said it was stupid. It works in IE (must have been a caching > issue) however, it does not work in Firefox. Any suggestions? > Nothing ever displays. > > >OK - this is stupid I know, but why does this not hide the div when > the > >conditional is not met? If acctForm.MemID length is 0, it displays > the > >div - but if the user tries again, and acctForm.MemID is not zero, it > does > >not turn around and hide it. If someone can help, I'd be > appreciative. No > >errors are thrown. > > > >Dave > > > >onload = setscreen; > >function setscreen() { > > if(document.all) { > > document.all.a.style.visibility = 'hidden'; > > } else if(document.getElementByID) { > > document.getElementByID("a").visibility = 'hidden'; > > } else { > > document.layers["a"].visibility = 'hidden'; > > } > >} > >function acctNo() { > > setscreen() > > if(document.acctForm.MemID.value.length == 0) { > > if(document.all) { > > document.all.a.style.visibility = 'visible'; > > } else if(document.getElementByID) { > > document.getElementByID("a").visibility = 'visible'; > > } else { > > document.layers["a"].visibility = 'visible'; > > } > > } >} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2073 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54 |
| Free Forum Powered by Nabble | Forum Help |