Deltaflyer
Programmer
I am programming a page that is in essence a report-writer. There are apr. 15 checkboxes that the user can select for the search and add values to each of these. What i would like to do is hide all the relevant fields until the user checks the relevant button.
I.e. check the Reference box and the reference value fields appear.
the format of the page is
[*] Reference = [ ] or [ ] or [ ] or [ ].
where [*] is the checkbox.
I am using this,
document.sqlbuild1.idop1.style.visibility='hidden'
document.sqlbuild1.idval1.style.visibility='hidden'
document.sqlbuild1.idop2.style.visibility='hidden'
document.sqlbuild1.idval2.style.visibility='hidden'
document.sqlbuild1.idop3.style.visibility='hidden'
document.sqlbuild1.idval3.style.visibility='hidden'
in order to hide the fields, but i am having problems when trying to hide cell values "=" and "or" 's.
The cells are set as <td nowrap id=reffield1> = </td>
but when i try to reference this using document.sqlbuild1['reffield1'].style.visibility='hidden' i get an error stating that
'document.sqlbuild1.reffield1.style' is not an object.
If you have any ideas as to how i can get around this problem, please let me know!!!
DeltaFlyer ;-)
DeltaFlyer - The Only Programmer To Crash With Style.
I.e. check the Reference box and the reference value fields appear.
the format of the page is
[*] Reference = [ ] or [ ] or [ ] or [ ].
where [*] is the checkbox.
I am using this,
document.sqlbuild1.idop1.style.visibility='hidden'
document.sqlbuild1.idval1.style.visibility='hidden'
document.sqlbuild1.idop2.style.visibility='hidden'
document.sqlbuild1.idval2.style.visibility='hidden'
document.sqlbuild1.idop3.style.visibility='hidden'
document.sqlbuild1.idval3.style.visibility='hidden'
in order to hide the fields, but i am having problems when trying to hide cell values "=" and "or" 's.
The cells are set as <td nowrap id=reffield1> = </td>
but when i try to reference this using document.sqlbuild1['reffield1'].style.visibility='hidden' i get an error stating that
'document.sqlbuild1.reffield1.style' is not an object.
If you have any ideas as to how i can get around this problem, please let me know!!!
DeltaFlyer ;-)
DeltaFlyer - The Only Programmer To Crash With Style.