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:

Protect Tag and Groups (1998) [ShowIf] and empty fields (1997) [WebDNA] Error: Can't open order file. Ignoring [OrderFile] context Error: Error: expected [/APPLICATION], but found [/!] instead[/!] (2011) replace using &append=T (2007) [SearchString] usage (1997) re: keep W* in front applescript? (try Cron) (1998) Searching (1999) carriage returns in data (1997) Credit Card not accepted (1998) [WebDNA] shopping sites and the "old commerce tags" (2012) emailer (1997) Sorting when searching with grouped fields (2002) Pithy questions on webcommerce & siteedit (1997) Webcatalog, Webstar and Crasharama (1999) Re:Running 2 two WebCatalog.acgi's (1996) WebCatalog v2.1.1 (1998) Extended [ConvertChars] (1997) External Images (1998) using showpage and showcart commands (1996) WebCatalog Hosting (1996)