[thelist] Form elements' state getting screwed up in Netscape 6.1 and 6.2.1

Cymbala, Greg Greg.Cymbala at Den.Galileo.com
Fri May 10 13:42:01 CDT 2002


OK, here's the deal:

I've got a DIV with an ID.  Inside the DIV is a FORM (with some tables in
it).  When the page is generated (server-side), some things like some
checkboxes' checked properties are set (via HTML attributes).  Also, the
selectedIndex of a SELECT element is also set (although that's done in
client-side JavaScript once the page has loaded.  All is okey-dokey in IE 6.

The problem I'm having is that if the DIV is hidden ...

... either by style:
    style="visibility:hidden;display:none;"

... or by script:

    document.getElementById("divName").style.visibility = "hidden";
    document.getElementById("divName").style.display = "none";

... then, the checkboxes lose their checked status and all end up being
"unchecked" when the DIV is redisplayed.  Also, the SELECT's selectedIndex
is lost unless I set it while the DIV is visible.

Anyone ever experienced similar problems?  Anyone have a workaround for
Netscape 6.x?

Thanks,
Greg


The information in this electronic mail message is sender's business
Confidential and may be legally privileged.  It is intended solely for the
addressee(s).  Access to this Internet electronic mail message by anyone
else is unauthorized.  If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it is prohibited and may be unlawful.
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during  transmission. By reading
the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. Galileo International is not liable for any loss or damage
arising in any way from this message or its attachments.





More information about the thelist mailing list