Re: Database search in JavaScript with passed values
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44005
interpreted = N
texte = Just a thought, but try putting [raw][/raw] around the [0] and [2]. I've had to do this before when using WebDNA and Javascript together. You may also want to take the search out of the JavaScript function, and use it to set text variables. Than add the variables in the Function.-RobertTim Postier wrote:>I am trying to dynamically fill a form full of text boxes using a search value selected from a drop-down list. How do I use the passed value from the drop-down in the WC search inside the JavaScript function? I have included the non-working function below:>>function fillForm(uID){> var cName;> [search db=info.db&eqFIELD1data=uID]> [founditems]> cName = [name];> document.forms[0].elements[2].value=cName;> [/founditems][/search]>}>>Thanks in advance for your help!>>>>>____________________________________________________________>Watch a championship game with Elway or McGwire.>Enter Now at http://champions.lycos.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/>> >-------------------------------------------------------------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:
Just a thought, but try putting [raw][/raw] around the [0] and [2]. I've had to do this before when using WebDNA and Javascript together. You may also want to take the search out of the JavaScript function, and use it to set text variables. Than add the variables in the Function.-RobertTim Postier wrote:>I am trying to dynamically fill a form full of text boxes using a search value selected from a drop-down list. How do I use the passed value from the drop-down in the WC search inside the JavaScript function? I have included the non-working function below:>>function fillForm(uID){> var cName;> [search db=info.db&eqFIELD1data=uID]> [founditems]> cName = [name];> document.forms[0].elements[2].value=cName;> [/founditems][/search]>}>>Thanks in advance for your help!>>>>>____________________________________________________________>Watch a championship game with Elway or McGwire.>Enter Now at http://champions.lycos.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/>> >-------------------------------------------------------------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/
Robert Wade
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:
Numbers from Sentence (2003)
Newbie questions (1999)
WebCatalog for Postcards ? (1997)
Next X hits (1996)
RE: Is there a 'does not contain' comparison? (1999)
[shownext max (1997)
WebCatalog for Dummies part 2 (2000)
Editor? (2000)
$Append for Users outside the ADMIN group (1997)
Windows-based Code Editor (2002)
NT beta ReadMe missing (b12-b15) (1997)
Credit card types (1997)
Expected behavior? (1998)
Decrypt Problems (always include a Subject!!!) (2000)
ShippingCosts (1998)
Re:Navigator 4.01 (1997)
Purchased cart being overwritten - still !?? (1997)
Client-side Image Maps and WebCat? (1998)
searching with if/then (2004)
Another bug to squash (WebCat2b13 Mac .acgi) (1997)