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:

Field name-subcategory (1997) Re1000001: Setting up shop (1997) Strange intermittent WebDNA problems (2008) Using Plug-In while running 1.6.1 (1997) Duplicate Cart ID (2001) ShopsOnTheNet - How many are using WebCat? (1999) no global [username] or [password] displayed ... (1997) Logical and or in [hideif] (1997) Locking up with WebCatalog... (1997) Date Search (2004) Email troubles (2005) WebDNAMonitor (2002) Date search bug? (1998) [numfound] within summ=t ??? (2000) Problem with webcat install (1998) WebCat2b15MacPlugin - [protect] (1997) ShoppingCart removal (2002) [append] vs. [appendfile] delta + question? (1997) Convertchars Problem (2004) SQL newbie (2002)