Re: Javascript/WebCatalog form population

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37485
interpreted = N
texte = this is how i would start out:use a method ( like onBlur( ) ) in the drop down list tag. in your function, pass your variable (the value selected in the drop down.. something like.. document.formname.dropdownname ) and use wc code to pull the values out of the db and assign them to javascript variables ( var shippingdate = [ship_date]; and so on ) then use document.writeln( ) to fill in the values ( you can also write html code here.. just be sure to use the correct delemiters ) something like writeThis( ){document.formname.forminputvalue = [wc value] } might work too. be sure to test this in a few browsers to make sure it works. also.. i prefer document.writeln( ); to document.write( ); because document.write( ); can only handle 256 characters before it shits out. that wouldnt be good if you had to write a long comment out or many lines of code.hope this helps-- celesteBob McPeak wrote:> I'm looking for some code that will allow a user to select an item from a > drop-down list (i.e. a name from a list of names) and then populate other > fields in the same form with the corresponding values for that name returned > from a WC database. > > In other words, the user selects John Smith, and then John Smith's address > data is immediately populated into the form. > > I've browsed the archive and can't quite find what I'm looking for. > > Anybody have some sample code to help me get started? > > > > > ------------------------------------------------------------- > 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: Javascript/WebCatalog form population (Celeste Paul 2001)
  2. Re: Javascript/WebCatalog form population (Kalin Mintchev 2001)
  3. Re: Javascript/WebCatalog form population (Andrew Simpson 2001)
  4. Re: Javascript/WebCatalog form population (Kalin Mintchev 2001)
  5. Re: Javascript/WebCatalog form population (Andrew Simpson 2001)
  6. Re: Javascript/WebCatalog form population (Kalin Mintchev 2001)
  7. Re: Javascript/WebCatalog form population (Andrew Simpson 2001)
  8. Re: Javascript/WebCatalog form population (Kalin Mintchev 2001)
  9. Re: Javascript/WebCatalog form population (Kalin Mintchev 2001)
  10. Re: Javascript/WebCatalog form population (Alisha Outridge 2001)
  11. Re: Javascript/WebCatalog form population (Alisha Outridge 2001)
  12. Re: Javascript/WebCatalog form population (Donovan Brooke 2001)
  13. Re: Javascript/WebCatalog form population (Robert Kudrle 2001)
  14. Re: Javascript/WebCatalog form population (Celeste Paul 2001)
  15. Javascript/WebCatalog form population (Bob McPeak 2001)
this is how i would start out:use a method ( like onBlur( ) ) in the drop down list tag. in your function, pass your variable (the value selected in the drop down.. something like.. document.formname.dropdownname ) and use wc code to pull the values out of the db and assign them to javascript variables ( var shippingdate = [ship_date]; and so on ) then use document.writeln( ) to fill in the values ( you can also write html code here.. just be sure to use the correct delemiters ) something like writeThis( ){document.formname.forminputvalue = [wc value] } might work too. be sure to test this in a few browsers to make sure it works. also.. i prefer document.writeln( ); to document.write( ); because document.write( ); can only handle 256 characters before it shits out. that wouldnt be good if you had to write a long comment out or many lines of code.hope this helps-- celesteBob McPeak wrote:> I'm looking for some code that will allow a user to select an item from a > drop-down list (i.e. a name from a list of names) and then populate other > fields in the same form with the corresponding values for that name returned > from a WC database. > > In other words, the user selects John Smith, and then John Smith's address > data is immediately populated into the form. > > I've browsed the archive and can't quite find what I'm looking for. > > Anybody have some sample code to help me get started? > > > > > ------------------------------------------------------------- > 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/ Celeste Paul

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:

macosx 1 process, linux N processes, macosx chokes under load (2001) SiteGuard Admin Feature ? (1997) Reversed words (1997) Re:Review comparison by PC Magazine: Open for On-line Business (1997) Cookie set browser session. (1998) POP Mail Server reseting (1998) IE cache problems (1999) New Weird Behavior (bug report) (2000) Help! WebCat2 bug (1997) [lookup] speed sales pitch (2003) RAM variables (1997) Extended [ConvertChars] (1997) Date format problems (1997) WebCat2b13 Command Reference Doc error (1997) Moment of Thanks (1997) HELP WITH DATES (1997) ShowNext Questions (2000) Re2: Calculating multiple shipping... (1997) old 3.0 mac license for sale? (2003) Server slowing down. (1997)