Re: [OT] Disable/enable field

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49594
interpreted = N
texte = Nitai,Not sure off the top of my head...perhaps a loop?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....-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------ On Thu, 17 Apr 2003 19:11:21 Nitai @ ComputerOil wrote: >On 16.4.2003 16:18 Uhr, Dan Strong wrote: > >> Nitai, try this: >> >> ============================ >> >> >>
>> > onClick=disableit=!disableit;thetext.disabled=disableit;if(disableit){newcolo >> r='#cccccc'}else{newcolor='#ffffff'};if(document.all){document.forms['theform' >> ].elements['thetext'].style.backgroundColor=newcolor}> >>
>> >>
>> ============================ > >Thank you. But what about if I need to enable/disable more then just one >select field and also another checkbox? > >I have tried putting more fieldnames in there, but it doesn't work. > >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/ 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)
Nitai,Not sure off the top of my head...perhaps a loop?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....-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------ On Thu, 17 Apr 2003 19:11:21 Nitai @ ComputerOil wrote: >On 16.4.2003 16:18 Uhr, Dan Strong wrote: > >> Nitai, try this: >> >> ============================ >> >> >>
>> > onClick=disableit=!disableit;thetext.disabled=disableit;if(disableit){newcolo >> r='#cccccc'}else{newcolor='#ffffff'};if(document.all){document.forms['theform' >> ].elements['thetext'].style.backgroundColor=newcolor}> >>
>> >>
>> ============================ > >Thank you. But what about if I need to enable/disable more then just one >select field and also another checkbox? > >I have tried putting more fieldnames in there, but it doesn't work. > >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/ Dan Strong

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:

Problem with Showif & Applescript (1997) Reminder... (2003) about this server and links to who (1997) RE: Displaying Location (1997) Re:PCS Customer submissions ? (1997) PCS Frames (1997) Changing names of .hdr field names (2003) syntax question, not in online refernce (1997) WCS Newbie question (1997) Linux problems (2000) Classified Ads 4 Sale (1998) RE: AccountAuthorizer doesn't seem to work (1997) WebCatalog2 Feature Feedback (1996) Sorting by date (1997) Help name our technology! (1997) Modulo function? (2000) Paramater Passing Value (2002) [WebDNA] Seriously what is wrong here? (2011) different show next (1997) Ampersand (1997)