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:

WebCat2 - [format thousands] (1997) RequiredFields template (1997) Uploading Files (2000) Limit to variables passed on to next tpl? (1998) Login and pass variables to [protect] tag (2001) Summing a field full of numbers ... (1997) Nested tags count question (1997) Alternate Cookie location (2001) WebCatalog 4.0 & Tenon iTools (2000) Items XX to XX shown (1997) Webcatalog 4.0 - When will we be able to beta test it? (2000) FORMS: Returning a specific page (1997) [WebDNA] Mac OS X Server ("Maverick") - Not Authorized (2014) WebCat & Liststar ... & Rumpus, too! (1997) [WebDNA] [BULK] WebDNA 7 & Amazon Cloud (2011) random in arizona (2003) What is the maximum record length? (1998) Notepad problems (1998) Forms Search Questions (1997) Open Databases on Restart (1999)