Re: wee problem

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39027
interpreted = N
texte = you need to trigger this script somewhere, but this is the script that will do what you want.i.e. //clicking on a checkbox //triggers this script function putvalue(){ document.formname.inputname.value=value you want }also, to spice it up, use: //the if statement sees if the box is checked... if (document.formname.same.value=checked){ document.formname.inputname.value=value you want }to check if the checkbox is checked.I remember it well, it was 10/3/01 10:23 AM, and Laeg Ent.(laeg_enterprises@yahoo.co.uk) wrote:> Sorry I know this is not a javascript forum but can > anyone tell me how do you set the value of an input > box > using javascript. I need to use JS as I am updating > the value of the box dynamically. > > language=javascript>document.write(5);> > > this does not work obviously as it will just be > interpreted as a string and will be written to the > screen. Any ideas???? > > > > ------------------------------------------------------------- > 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://search.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: wee problem (John Peacock 2001)
  2. Re: wee problem (Josh Lynn 2001)
  3. Re: wee problem (Josh Lynn 2001)
  4. Re: wee problem (Will Starck 2001)
  5. Re: wee problem (John Peacock 2001)
  6. Re: wee problem (Laeg Ent. 2001)
  7. Re: wee problem (Josh Lynn 2001)
  8. Re: wee problem (Anup Setty 2001)
  9. wee problem (Laeg Ent. 2001)
you need to trigger this script somewhere, but this is the script that will do what you want.i.e. //clicking on a checkbox //triggers this script function putvalue(){ document.formname.inputname.value=value you want }also, to spice it up, use: //the if statement sees if the box is checked... if (document.formname.same.value=checked){ document.formname.inputname.value=value you want }to check if the checkbox is checked.I remember it well, it was 10/3/01 10:23 AM, and Laeg Ent.(laeg_enterprises@yahoo.co.uk) wrote:> Sorry I know this is not a javascript forum but can > anyone tell me how do you set the value of an input > box > using javascript. I need to use JS as I am updating > the value of the box dynamically. > > language=javascript>document.write(5);> > > this does not work obviously as it will just be > interpreted as a string and will be written to the > screen. Any ideas???? > > > > ------------------------------------------------------------- > 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://search.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://search.smithmicro.com/ Josh Lynn

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:

Close-to Comparison Code (1998) Sort Order on a page search (1997) Caching [include] files ... (1997) Out of the woodwork (2007) RE: Automatic thumbnail images (1998) Text limits in NT version? (1997) back button problem (1999) Weird error/limit - something amiss? (1997) Protect (1997) Dismissing dialogs (was 2.1b3 --> way slow) (1997) Some Questions (1997) [math date] with non-US date format (2000) [WebDNA] =?windows-1252?Q?Re=3A_=5BWebDNA=5D_=5BWebDNA=5D_WebDNA=3A_Could_not_establish_co?= (2012) Pithy questions on webcommerce & siteedit (1997) FEW QUESTIONS (1997) [bug] Technical Support Log Crashes Server (2004) Shopping problems with 2.1b3 acgi (1997) Is there an alternative to emailer? (1999) 2.1b3 --> way slow (1997) [protect admin] (1997)