Thanks Kevin.  I'm using the disabled on the button and a layer for the
text.

Brian

> -----Original Message-----
> From: Kevin Faulkner [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, 2 March 2004 11:26
> To:   CFAussie Mailing List
> Subject:      [cfaussie] Re: OT Javascript hiding fields
> 
> I think the button is best enabled and disabled rather than appearing and
> disappearing, use    document.form.button.disabled = true/false for that
> 
> Without layers, the block of text is a little more fiddly, you can get
> clever with a textarea or text lines with colour and style like your
> backgrouns and then just populate the form with that. Alternatively, use a
> style="visibility:hidden;" to build the page, then use
> 
>   if (document.getElementById) {  // object detection for IE5 and NS6
>     var layerObj=document.getElementById(layerID);
>     layerObj.style.visibility='visible';
>   } else if (document.all) {  // object detection for IE4
>     document.all[layerID].style.visibility='visible';
>   } else if (document.layers) {  // object detection for NS4
>     document.layers[layerID].visibility='show';
> 
> etc etc
> 
> That any good?
> 
> 
> 
> 
> ----- Original Message -----
> From: "KNOTT, Brian" <[EMAIL PROTECTED]>
> To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 02, 2004 11:29 AM
> Subject: [cfaussie] OT Javascript hiding fields
> 
> 
> >
> > What's the best way to hide / unhide form fields through JavaScript.  I
> have
> > a button that I don't want to appear until the user has selected a
> radio.
> A
> > also want to do the same with a block of text.  Not sure about using
> layers
> > as it has to work in Netscape 4.
> >
> > Brian Knott
> >
> >
> >
> >
> --------------------------------------------------------------------------
> ---------
> >
> > The contents of this message are the views of the Author and do not
> necessarily reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722.
> >
> > The content of this e-mail, including attachments is a confidential
> communication between the Suncorp Metway Group and the intended addressee.
> Any unauthorised use of the contents is expressly prohibited. If you have
> received this e-mail in error please contact the sender immediately and
> then
> delete the message and any attachment(s).
> >
> > http://www.suncorp.com.au
> >
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> >
> > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> > http://www.mxdu.com/ + 24-25 February, 2004
> >
> >
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> 
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to