Do be careful using forms, DHTML and Nutscrape 4.x (particularly 4.0x) -
I've had a lot of problems mixing forms and DHTML in NS.

Also, if you want it to work in NS6 - accessing the DOM is different...

Cheers

Dan

-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2001 02:45
To: CF-Talk
Subject: RE: drop down form


> >i have a form on a page.  i want to be able to have like a "minimize"
> >"maximize" button on the form.

Put this in your head:

<script language='JavaScript'>
        function toggle(theid) {
                ( document.all(theid).style.display == '' ) ?
document.all(theid).style.display = 'none' :
document.all(theid).style.display =  '';
                return false
        }
</script>

Use something like this as your button:
<A onclick="toggle('myID'); return false;" href="#">Toggle Visibility</A>

Give whatever you want to show/hide the id 'myID' or whatever -- you can
have multiple per page. Also specify its default style="display : none" or
whatever. Incidentally, it's a really good way of dealing with long,
unwieldy forms.


Regards,
Matthew Walker

<!---
  ============================================
       E l e c t r i c   S h e e p   W e b
          Innovative  Web  Applications
  --------------------------------------------
    Tel....: +64-3-374 2137
    Mobile.: +64-25-605 5747
    Fax....: +64-3-377 7930
    Web....: http://www.electricsheep.co.nz/
    Post...: P O Box 13-907, Armagh
             Christchurch, New Zealand
    Street.: 71 Durham Street
             Christchurch, New Zealand
  ============================================
--->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to