Re: [OT] Disable/enable field

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49618
interpreted = N
texte = Well, isnt there a Javascript command or definition that sses if the checkbox is checked or unchecked?Sincerely, Nitai Aventaggiato CEOOn 17.4.2003 23:04 Uhr, Dan Strong wrote:> Oh well... I tried :) > -Dan > > On Thu, 17 Apr 2003 22:52:27 > Nitai @ ComputerOil wrote: >> Dan >> >> Thank you for your time, but this is definitely not what I am looking for:-) >> >> Sincerely, >> Nitai Aventaggiato >> CEO >> >> On 17.4.2003 19:37 Uhr, Dan Strong wrote: >> >>> Nitai, >>> >>> Check this out (code below). I know it's not *exactly* what you are looking >>> for, but it works and >>> *might* prove useful... >>> ============================== >>> >>> >>>
>>> [loop start=1&end=10] >>> >> onClick=disableit=!disableit;thetext[index].disabled=disableit;if(disableit >>> ){ >>> newcolor='#cccccc'}else{newcolor='#ffffff'};if(document.all){document.forms[ >>> 't >>> heform'].elements['thetext[index]'].style.backgroundColor=newcolor}> >>> >>>
>>> [/loop] >>>
>>> ============================== >>> >>> -Dan >>> ------------------------------------------------------------ >>> http://www.StrongGraphicDesign.com >>> (208) 319-0137 | Toll-free p/f 877-561-1656 >>> ------------------------------------------------------------ >>> >>> >>> >>> On Thu, 17 Apr 2003 19:33:45 >>> Nitai @ ComputerOil wrote: >>>> On 17.4.2003 19:28 Uhr, Dan Strong >>>> wrote: >>>> >>>>> Perhaps allow the [index] of the loop to give each >>>>> {function} (disableit1, disableit2, etc.) and >>>>> each select tag (, >>>>> etc.) >>>>> their own corresponding unique values? >>>>> >>>>> I know, I know, this is apt to get bulky code-wise, but it would probably >>>>> work...I'm sure there is >>>>> a much more elegant way to do this...I just don't have time at the moment >>>>> to >>>>> figure it out.... >>>> >>>> Yes, I understand. >>>> >>>> But what about my code which I posted? Actually it works to enable all the >>>> form elements, but when deselecting the checkbox it should also disable the >>>> form elements again! >>>> >>>> Actually, as far as I know, all I need is a way to figure out if the >>>> checkbox has been deselected. >>>> >>>> Something like: >>>> >>>> >>>> >>>> TIA. >>>> >>>> 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/ >>> >>> ------------------------------------------------------------- >>> 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/ >> >> -- >> 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/-- Tools to energize your business Content Management & eBusiness SystemsComputerOil 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/ 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)
Well, isnt there a Javascript command or definition that sses if the checkbox is checked or unchecked?Sincerely, Nitai Aventaggiato CEOOn 17.4.2003 23:04 Uhr, Dan Strong wrote:> Oh well... I tried :) > -Dan > > On Thu, 17 Apr 2003 22:52:27 > Nitai @ ComputerOil wrote: >> Dan >> >> Thank you for your time, but this is definitely not what I am looking for:-) >> >> Sincerely, >> Nitai Aventaggiato >> CEO >> >> On 17.4.2003 19:37 Uhr, Dan Strong wrote: >> >>> Nitai, >>> >>> Check this out (code below). I know it's not *exactly* what you are looking >>> for, but it works and >>> *might* prove useful... >>> ============================== >>> >>> >>>
>>> [loop start=1&end=10] >>> >> onClick=disableit=!disableit;thetext[index].disabled=disableit;if(disableit >>> ){ >>> newcolor='#cccccc'}else{newcolor='#ffffff'};if(document.all){document.forms[ >>> 't >>> heform'].elements['thetext[index]'].style.backgroundColor=newcolor}> >>> >>>
>>> [/loop] >>>
>>> ============================== >>> >>> -Dan >>> ------------------------------------------------------------ >>> http://www.StrongGraphicDesign.com >>> (208) 319-0137 | Toll-free p/f 877-561-1656 >>> ------------------------------------------------------------ >>> >>> >>> >>> On Thu, 17 Apr 2003 19:33:45 >>> Nitai @ ComputerOil wrote: >>>> On 17.4.2003 19:28 Uhr, Dan Strong >>>> wrote: >>>> >>>>> Perhaps allow the [index] of the loop to give each >>>>> {function} (disableit1, disableit2, etc.) and >>>>> each select tag (, >>>>> etc.) >>>>> their own corresponding unique values? >>>>> >>>>> I know, I know, this is apt to get bulky code-wise, but it would probably >>>>> work...I'm sure there is >>>>> a much more elegant way to do this...I just don't have time at the moment >>>>> to >>>>> figure it out.... >>>> >>>> Yes, I understand. >>>> >>>> But what about my code which I posted? Actually it works to enable all the >>>> form elements, but when deselecting the checkbox it should also disable the >>>> form elements again! >>>> >>>> Actually, as far as I know, all I need is a way to figure out if the >>>> checkbox has been deselected. >>>> >>>> Something like: >>>> >>>> >>>> >>>> TIA. >>>> >>>> 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/ >>> >>> ------------------------------------------------------------- >>> 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/ >> >> -- >> 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/-- Tools to energize your business Content Management & eBusiness SystemsComputerOil 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/ Nitai @ ComputerOil

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:

WC2.0 Memory Requirements (1997) WebCat2 several catalogs? (1997) Anyone integrate askimet with webdna? (2007) webCatalog and Stocks (1998) Help! WebCat2 bug (1997) displaying New products (using [date]) (1997) need e-commerce recommendation (2004) Anyone using unix? Having problems... (2000) [WebDNA] DNA suffix (2008) Attention SM: Trigger Bug? (2000) WC Host Needed (2000) form data submission gets truncated (1997) back button problem (1999) WebCat2 - Getting to the browser's username/password data (1997) WebDNA hosting? ... (2004) Emailer connect failure definitions (2003) (2000) users change an email address (2002) RE: E-mailer error codes (1997) OT:looking for developers with solutions (2000)