Re: [OT] Disable/enable field

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49561
interpreted = N
texte = That should actually do it, but before you get into all this I just wanted to mention that checkboxes have a readonly state.I have also usedinput type=checkbox onclick=this.checked=false>Good luck!----- Original Message ----- From: Dan Strong To: WebDNA Talk Sent: Wednesday, April 16, 2003 7:18 AM Subject: Re: [OT] Disable/enable field > Nitai, try this: > > ============================ > > >
> onClick=disableit=!disableit;thetext.disabled=disableit;if(disableit){newco lor='#cccccc'}else{newcolor='#ffffff'};if(document.all){document.forms['thef orm'].elements['thetext'].style.backgroundColor=newcolor}> >
> >
> ============================ > > > > > > On Wed, 16 Apr 2003 15:10:49 > Nitai @ ComputerOil wrote: > >Hi all > > > >Need just a little help with this small JS. When I check the checkbox the > >select field gets enabled. I also want that the select gets disabled when > >the checkbox is disabled. Couldn't figure it out? Any help very much > >appreciated. > > > >-------- > > > > > > > > > >
> > > > > > > > > > > >
> >--------- > > > >Sincerely, > >Nitai Aventaggiato > >CEO > > > >-- > >Tools to energize your business > >Content Management & eBusiness Systems > > > >ComputerOil? GmbH http://computeroil.com/ > >Unionstrasse 4 info@computeroil.com > >8032 Zürich/Switzerland > >Tel: +41 (0)43 333 1 555 > > > > > >------------------------------------------------------------- > >This message is sent to you because you are subscribed to > > the mailing list . > >To unsubscribe, E-mail to: > >To switch to the DIGEST mode, E-mail to > >Web Archive of this list is at: http://webdna.smithmicro.com/ > > ------------------------------------------------------------ > http://www.StrongGraphicDesign.com > (208) 319-0137 | Toll-free p/f 877-561-1656 > ------------------------------------------------------------ > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [OT] Disable/enable field (Nitai @ ComputerOil 2003)
  2. Re: [OT] Disable/enable field (Christer Olsson 2003)
  3. Re: [OT] Disable/enable field (Nitai @ ComputerOil 2003)
  4. Re: [OT] Disable/enable field (Nitai @ ComputerOil 2003)
  5. Re: [OT] Disable/enable field (Dan Strong 2003)
  6. Re: [OT] Disable/enable field (Dan Strong 2003)
  7. Re: [OT] Disable/enable field (Christer Olsson 2003)
  8. Re: [OT] Disable/enable field (Nitai @ ComputerOil 2003)
  9. Re: [OT] Disable/enable field (Dan Strong 2003)
  10. Re: [OT] Disable/enable field (Nitai @ ComputerOil 2003)
  11. Re: [OT] Disable/enable field (Dan Strong 2003)
  12. Re: [OT] Disable/enable field (Nitai @ ComputerOil 2003)
  13. Re: [OT] Disable/enable field (Dan Strong 2003)
  14. Re: [OT] Disable/enable field (Nitai @ ComputerOil 2003)
  15. Re: [OT] Disable/enable field (WebCat @ Inkblot Media 2003)
  16. Re: [OT] Disable/enable field (Dan Strong 2003)
  17. [OT] Disable/enable field (Nitai @ ComputerOil 2003)
That should actually do it, but before you get into all this I just wanted to mention that checkboxes have a readonly state.I have also usedinput type=checkbox onclick=this.checked=false>Good luck!----- Original Message ----- From: Dan Strong To: WebDNA Talk Sent: Wednesday, April 16, 2003 7:18 AM Subject: Re: [OT] Disable/enable field > Nitai, try this: > > ============================ > > >
> onClick=disableit=!disableit;thetext.disabled=disableit;if(disableit){newco lor='#cccccc'}else{newcolor='#ffffff'};if(document.all){document.forms['thef orm'].elements['thetext'].style.backgroundColor=newcolor}> >
> >
> ============================ > > > > > > On Wed, 16 Apr 2003 15:10:49 > Nitai @ ComputerOil wrote: > >Hi all > > > >Need just a little help with this small JS. When I check the checkbox the > >select field gets enabled. I also want that the select gets disabled when > >the checkbox is disabled. Couldn't figure it out? Any help very much > >appreciated. > > > >-------- > > > > > > > > > >
> > > > > > > > > > > >
> >--------- > > > >Sincerely, > >Nitai Aventaggiato > >CEO > > > >-- > >Tools to energize your business > >Content Management & eBusiness Systems > > > >ComputerOil? GmbH http://computeroil.com/ > >Unionstrasse 4 info@computeroil.com > >8032 Zürich/Switzerland > >Tel: +41 (0)43 333 1 555 > > > > > >------------------------------------------------------------- > >This message is sent to you because you are subscribed to > > the mailing list . > >To unsubscribe, E-mail to: > >To switch to the DIGEST mode, E-mail to > >Web Archive of this list is at: http://webdna.smithmicro.com/ > > ------------------------------------------------------------ > http://www.StrongGraphicDesign.com > (208) 319-0137 | Toll-free p/f 877-561-1656 > ------------------------------------------------------------ > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ WebCat @ Inkblot Media

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WC1.6 to WC2 date formatting (1997) Sorting problem (2002) Security Question (1997) WebMerchant 1.6 and SHTML (1997) New public beta available (1997) OT: 800x600 (2003) [OT] Appropriate Signature??? (2003) I have observed and I am gone. (1998) Signal Raised (1997) checking for [ and ] in form fields ... (1997) Question about links (1999) search/showif issues (2000) OBDC Support (1997) large database (2000) WebCatalog can't find database (1997) Euro WebDNA Conference (2004) ReturnRaw and redirect (1997) Unable to view next 101-200 (1997) rotating thumbnails (1997) Searching multiple Databases (1997)